Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- open the 'About' menu for the currently active app
- -- make it into a Service or use a script runner like FastScripts to assign it a hotkey
- -- http://applehelpwriter.com/2018/03/31/how-to-add-a-hotkey-for-the-about-menu/
- tell application "System Events" to tell (process 1 where it is frontmost)
- try
- tell menu bar item 2 of menu bar 1
- click
- tell menu item 1 of menu 1 to click
- end tell
- on error
- display dialog "Couldn't get 'About' menu item." buttons "OK" default button "OK" with icon 2 with title "About Menu Script"
- end try
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement