|
|
A script to automatically open a Terminal window to its directory
Why not use AUtomator to create a Service for Finder so you can just right-click on your folder and select "Open folder in Terminal"?
Do this: Open Automator Create a new Service Drag the Run Applescript action over Paste in the following Applescript slightly modified from the original poster:
tell application "Finder" to set the myPath ¬
to (the target of the front window) as alias
set myPath to POSIX path of myPath
tell application "Terminal"
activate
do script ("cd " & quoted form of myPath)
end tell
Save that as something like: Open folder in TerminalAnd there ya go...... There is a way to pass your selection from the FInder to your script but I didn't work long enough to figure out how that works. Enjoy....
A script to automatically open a Terminal window to its directory
You can even use the Keyboard pref pane to assign a key combo for your newly create Context menu item! |
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.05 seconds |
|