" in the terminal (completing the circle). You can open a Finder pointing to the current terminal’s working directory by typing "open. The absolute icing on the cake is OSX’s built in "open" command. Set frontWinPath to (get POSIX path of frontWin)ĭo script with command "cd "" & frontWinPath & """Īnd get the icons from /Applications/Utilities/Terminal.app/Contents/Resources/Terminal.icns. Set frontWin to folder of front window as string
You just use this block of AppleScript code:
You can get the terminal in on this game by using TomWoozle (Tom Anthony)’s Macword Mac OSX hint in the same pattern as above to create a button that open a new terminal shell at the current finder location. If you already are a terminal user you will like the following. One of the really cool things about OSX is it has a good command line terminal. In my case I really like being able to open the command line terminal in the current finder directory. When you click on this icon you get a new finder in the current context.īut you can do more, you can repeat this pattern with other applications. Now all of your finders show the new application as an icon in the upper toolbar. On a Finder right click on some blank space in the upper toolbar and select Customize Toolbar.
Then replace Contents/Resources/applet.icns with Pieter Stroink’ finder icon (the file Finder_without_Bag.icns from the downloadable zip file Finder_Icon_by_eggy.zip). With a finder right click on the new application and select Show Package Contents. Select File->Save As, choose file format Applicaton and save as “OpenFinder.app”. Set position of front window to -This offsets the new window more than the average Finder tiling does Set this_folder to (the target of the front window) as alias
I tend to prefer command line Linux and full window OSX for my work.
Data science advising, consulting, and training