Trouble selecting pop-up menu item

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

Well, I can see nobody is jumping on this one. Perhaps because I found a bunch of similar posts. I came up with a new script that seems to work but I’m sure it can be done cleaner.

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}
		delay 1
		keystroke "4"
		delay 1
		keystroke tab & return
		keystroke "r" using {command down}
	end tell
end tell

If you get no response it may be because none of us own Sound Studio so we can’t test a possible response.

Yvan KOENIG (from FRANCE jeudi 18 juin 2009 12:12:49)

Right. Well, here is a link to download a trial version if anyone is interested.

http://www.apple.com/downloads/macosx/audio/soundstudio.html


cc