Skip to content

Instantly share code, notes, and snippets.

@darwin
Created February 3, 2020 15:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darwin/05967eedcc377fdff843c3402e11dc69 to your computer and use it in GitHub Desktop.
Save darwin/05967eedcc377fdff843c3402e11dc69 to your computer and use it in GitHub Desktop.
This is a simple automation script to open two extra tabs and switch them to custom paths. Tested on macOS 10.15.3 (Catalina) and TotalFinder 1.12.3
set paths to {"/Users/darwin/Music", "/Users/darwin/Desktop"}
-- open all paths as new tabs
repeat with path in paths
set applePath to POSIX file path
tell application "Finder" to activate
tell application "System Events"
keystroke "t" using command down
end tell
delay 1
tell application "Finder"
set target of the front Finder window to applePath
end tell
end repeat
@bentalgad
Copy link

Is it possible to do the same with the current folder? (open the current finder folder in a new tab. actually duplicate the current window to a new tab it is).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment