I've recently switched to a Mac and want to improve my workflow a bit. I often need to run scripts using the terminal that are in several different folders.

How do I create something like Windows shortcuts that launches the Terminal app with it's initial working directory set to a particular folder?

link|improve this question

53% accept rate
feedback

2 Answers

You could write some Applescript and save it as an application.

e.g.

tell application "Terminal"
    do script "cd ~/Clients/Yoyodyne/"
end tell
link|improve this answer
feedback

If you want Terminal to start in the same directory each time, the following solution is probably best. If you want multiple different shortcuts for different directories, the above solution is better.

When running Terminal, navigate to:

Preferences > Settings > Shell > Startup

From there, simply tick "Run command: " and type the appropriate terminal command in the box (for example, cd ~/Desktop/ changes to your desktop folder).

Now whenever you start Terminal, it will change to that directory.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.