|
|
A script to open current Finder folder in the Terminal
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.
A script to open current Finder folder in the Terminal
I think I forgot to tell Gary about this previous hint:
A script to open current Finder folder in the Terminal
I should have added a clickable link of above
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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 |
|