I would like a shortcut in my Dock that opens the Terminal window to a specific folder (the place where i store my development files). Is there a simple way to do this?
|
feedback
|
|
Fire up AppleScript Editor and put in the following script:
replacing | ||||
|
feedback
|
|
There are some general solutions available that use the current path in Finder, such as OpenTerminalHere and cdto. You can accomplish your specific goal by using AppleScript:
Save in AppleScript Editor as Script (right-hand side of the Dock) or application (left-hand side of the Dock). Side effect of the script is that it will always open a new Terminal window. A little more sophisticated, opening a new tab only if necessary (depends on your preferences of course); this solution uses GUI scripting and might require support for assistive devices in Universal Access in System Preferences:
| ||||
|
feedback
|
|
I am not on OS X right now so I can't test this, but these ideas sprung to mind: Make a shortcut (or script, and then shortcut to it) like this:
Where the path is to your folder and the correct command to launch the terminal is used. If you only ever use the terminal in that way, you could put the cd (change directory) command into your bash profile, so whenever you open a new terminal it will go there. | |||||||
feedback
|