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


Click here to return to the 'A script to open current Finder folder in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to open current Finder folder in the Terminal
Authored by: kerbaugh on Nov 16, '03 04:42:36PM
   I couldn't agree with you more that the capability of interaction between the finder and terminal made possible by AppleScript is indispensable. However, I prefer being able to move around in the terminal window in which I'm currently working rather than opening a new window. I also like being able to do it from the terminal. I've written AppleScripts and shell scripts to help me do this. I also have scripts that change the Finder window. A friend, Bill Scott, prefers iTerm so he wrote comparable scripts for that application. He put icons on most these and put them in a disk image that you can get at:

http://kerbaugh.uncfsu.edu/pos.dmg.tgz

   It was rather difficult to get the Terminal to change directory in the current window. Terminal.app does make it possible to tell if the window is busy so that you don't step on an ongoing process. However, I had to use GUI scripting to make the actual change. In order to make this work on Panther, you must open System Preferences, go to the Universal Access Pane and check "Enable access for assistive devices" down at the bottom. Also, my script doesn't check for bad characters like Gregory's but it quotes the path so doesn't have problems with many of them.

   The ability to "grab" the selection in the finder is useful for more than just changing directory. I also like to be able to grep this directory and find files within it. The above package includes a few functions and aliases that do things like that.

[ Reply to This | # ]

A script to open current Finder folder in the Terminal
Authored by: wgscott on Nov 16, '03 05:14:33PM

I think I forgot to tell Gary about this previous hint:

http://www.macosxhints.com/article.php?story=20030915193326598



[ Reply to This | # ]
A script to open current Finder folder in the Terminal
Authored by: wgscott on Nov 16, '03 05:24:34PM
I should have added a clickable link of above

[ Reply to This | # ]