Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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