|
|
A script to automatically open a Terminal window to its directory
The hint is OK except for the fact that you have to place a copy of the script in every folder where you want this to work. Why not have 1 script that works no matter which folder you are in? Here's that. Just put this in your Script menu and then it's accessible any time from any folder.
NOTE: to show the script menu open AppleScript Editor, under preferences check the box "Show Script Menu". Then add this script to that menu by placing it in the folder ~/Library/Scripts.---
Hank http://www.hamsoftengineering.com
A script to automatically open a Terminal window to its directory
tell application "Finder" to set il to insertion location as alias set cmd to "cd " & quoted form of POSIX path of il tell application "Terminal" activate try do script with command cmd in window 1 on error do script with command cmd end try end tell
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.20 seconds |
|