Skip to content

Instantly share code, notes, and snippets.

@RyanFleck
Created July 2, 2019 17:33
Show Gist options
  • Select an option

  • Save RyanFleck/5092e7b08dea2e2c03ff4f757d926bfb to your computer and use it in GitHub Desktop.

Select an option

Save RyanFleck/5092e7b08dea2e2c03ff4f757d926bfb to your computer and use it in GitHub Desktop.
on run {input, parameters}
-- RCF: Quick Action for folders in Finder.app
-- Opens a new terminal window within the passed folder.
-- V2: Opens for every selected folder.
if (exists input) then
repeat with folderPath in input
set POSIXPath to POSIX path of folderPath
set newDirCmd to ("cd " & POSIXPath & " && clear")
tell application "Terminal"
do script newDirCmd
activate
end tell
end repeat
end if
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment