Last active
January 3, 2016 19:49
-
-
Save tofias/8510931 to your computer and use it in GitHub Desktop.
Open the Open Recent File Menu in BBEdit
This file contains 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
-- Open the Open Recent File Menu in BBEdit | |
-- https://gist.github.com/tofias/8510931 | |
-- dedicated to the good Dr Drang: http://www.leancrew.com/all-this/2014/01/open-recent-macro-for-bbedit | |
tell application "BBEdit" | |
activate | |
tell application "System Events" | |
tell process "BBEdit" | |
tell menu bar 1 | |
click menu bar item "File" | |
tell menu bar item "File" of menu bar 1 | |
tell application "System Events" to keystroke ("Open Recent") | |
tell application "System Events" to keystroke (ASCII character 29) -- right arrow | |
-- uncomment to just open the most recently used *file* in BBEdit | |
-- tell application "System Events" to keystroke (ASCII character 13) -- return | |
end tell | |
end tell | |
end tell | |
end tell | |
end tell | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment