Created
February 3, 2020 15:34
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).