/ Published in: AppleScript

only handles one sublevel for the menu
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
-- brandonjp 201103211048 -- applescript function to check if a menu item exists? -- returns true or false if menuItemExists({"timeEdition", "Extras", "Start Recording"}) then display dialog "hoda" end if on menuItemExists({appName, menuName1, menuItem1}) tell application "System Events" tell application process appName if menu item menuItem1 of menu 1 of menu bar item menuName1 of menu bar 1 exists then return true else return false end if end tell end tell end menuItemExists
Comments
