Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A script to automatically open a Terminal window to its directory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to automatically open a Terminal window to its directory
Authored by: ceej on Jul 29, '11 03:32:24AM

There's actually already a Service for this. (In Lion at least. I don't remember if it was there before.)

System Preferences -> Keyboard -> Keyboard Shortcuts -> Services -> Files and Folders -> New Terminal at Folder (or New Terminal Tab at Folder). You can create a keyboard shortcut here, too, if you're in to that kind of thing.

Right-click on any folder and the item appears in the bottom section of the contextual menu (or use your new keyboard shortcut). Works on "package" files, too.

Note: Services do not work on sidebar items or aliases; you have to select an actual folder or file.

(I'll submit a hint for this in the 10.7 category.)

[ Reply to This | # ]