I am trying to script the selection of standard menu items in Amadeus II, the sound editing app. (I never upgraded to Amadeus Pro since this version does all I need for now)
This script, patterned after one I use for another app successfully, fails to produce any result beyond activating the app. Any suggestions?
Oh, and I’m entering the “…” as an ellipsis from the Character palette.
do_menu("Amadeus II", "Selection", "Generate Markers.")
on do_menu(Amadeus, selection, "Generate Markers.")
try
-- bring the target application to the front
tell application Amadeus
activate
end tell
delay 1
tell application "System Events"
tell process Amadeus
tell menu bar 1
tell menu bar item selection
tell menu "Selection"
click menu item "Generate Markers."
end tell
end tell
end tell
end tell
return true
end tell
end try
end do_menu
Model: iMac
AppleScript: 221
Browser: Safari 531.9
Operating System: Mac OS X (10.5)