Skip to content

Instantly share code, notes, and snippets.

@tofias
Last active January 3, 2016 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tofias/8510931 to your computer and use it in GitHub Desktop.
Save tofias/8510931 to your computer and use it in GitHub Desktop.
Open the Open Recent File Menu in BBEdit
-- 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