Having trouble scripting a pop-up menu item click in Sound Studio. I can select the “Auto Start/Stop Recording.” menu item in the “Audio” menu by scripting the keystroke “R” but cannot click on a saved preset on a pop-up menu. The “Preset” pop-up menu bar has a default selection of “None”, but if you click on it you reveal the “4min” preset. I want to select the “4min” preset, click return and record. Here is the code I am using.
-- Tells sound studio to open a new file and record for 4 minutes.
tell application "Sound Studio"
activate
end tell
tell application "System Events"
tell process "Sound Studio"
keystroke "n" using {command down}
keystroke "R" using {command down}
tell menu item "4min" of menu 1 of menu item "Preset:" of menu 1
keystroke return
keystroke "r" using {command down}
end tell
end tell
end tell
Thanks for the help.
cc