Skip to content

Instantly share code, notes, and snippets.

@openfirmware
Created March 31, 2019 22:42
Show Gist options
  • Save openfirmware/8caa1f70e45aabbf9bab1f296cdf01fb to your computer and use it in GitHub Desktop.
Save openfirmware/8caa1f70e45aabbf9bab1f296cdf01fb to your computer and use it in GitHub Desktop.
Open first recent folder (alphabetical sorted) in Finder
tell application "System Events" to tell process "Finder"
set frontmost to true
tell menu bar item "Go" of menu bar 1
click
click menu item "Recent Folders" of menu 1
click menu item 1 of menu 1 of menu item "Recent Folders" of menu 1
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment