

#Osx finder open terminal here software#
With QS and Butler you can set global shortcut keys as well.I recently joined Courier as a Software Engineer and part of the onboarding process was to set up and configure my development environment on the new M1 MacBook Pro. Then save it somewhere convenient (I use ~/Library/Scripts) and tell QuickSilver, Butler or Google Quick Search Bar to run it. To use it, open Script Editor and paste it in. Set AppleScript's text item delimiters to oldDelims Set theString to the parsedList as string Set AppleScript's text item delimiters to "'\\''" Set the parsedList to every text item of theString Set AppleScript's text item delimiters to "'" Set oldDelims to AppleScript's text item delimiters

This simply quotes all occurrences of ' and puts the whole thing between 's Set thePath to (POSIX path of the source_folder as string) Tell application "Finder" to set the source_folder to (folder of the front window) as alias We need to delay, terminal ignores the second do script otherwise Tell application "System Events" to set isRunning to (exists process "Terminal") If Terminal was not running, one will be opened automatically Tell application "Finder" to set doIt to frontmost Figure out what the path is and quote it (myPath) Figure out if we want to do the cd (doIt) This is the script I wrote which opens a new window, going into the current Finder directory if Finder is the currently active application: on run
#Osx finder open terminal here windows#
With the -x option to screen, you can have multiple erminal windows lookng at the same server terminal, great :) Then I also have scripts that open ssh sessions to certain servers and reconnect to a screen session. I have a bunch of applescripts like that and I tied them to hotkeys with Quicksilver (or butler)īy default, I use a hotkeys that opens a terminal in the current finder directory, but only if finder is the frontmost application. You can create applescripts that open a window in the current finder directory for example. stack), or even type it's name into spotlight (accessible everywhere with Command-Space) and hit enter."įunny, I have used all 3 of the answers so far ) You can stick that on your dock, in a quick folder (a.k.a. Now you can double click that file to pop up your terminal. I was looking for something like an icon like Terminal that I can change the behavior of." And to that I might say something like: "Well, get all GUI-mousey here and find the ~/srcTerm.sh file in your finder, 'Get Info' about it, and change the 'Open with:' option to be 'Other.' then 'Enable all applications' and choose the Terminal application. That's really not the case I was asking for. Now you might be saying to yourself, "But dlamblin, this assumes I already have a terminal window open and am currently working on the command line. Next time you login, or source that file you can use the command popupsrc as a shortcut. I know that looks cumbersome, so now edit ~/.bash_profle and next to any other alias commands setup a new alias like: alias popupsrc='open -a /Applications/Utilities/Terminal.app ~/srcTerm.sh' Then issue: open -a /Applications/Utilities/Terminal.app ~/srcTerm.sh So make a file called ~/srcTerm.sh and put these commands in it: #!/bin/shīash -l #or whatever interactive program you like. You can adapt this by changing /usr/bin/screen to a command of your own making. What I'd do is use the best unix command under OS X: open. Personally I don't like the GUI or AppleScript based solutions I see here.
