I’m updating a script I used with Adobe Photoshop Elements. In Elements’ save dialog there are controls for file format etc. Under Jaguar, the below script worked to select “Pict File” from the format menu and then save. Under Panther it can’t find the popup menu, and the UI Inspector shows it as being a child of “AXUnknown”. Any ideas how I can get around this?
Thanks!
try
--Bring Photoshop to the front
tell application "Photoshop Elements 2.0" to activate
tell application "System Events"
--Save the file
click menu item "Save As..." of menu "File" of menu bar 1 of process "Photoshop Elements 2.0"
delay 1
tell process "Photoshop Elements 2.0"
tell window "Save As"
-- This is the line that breaks in Panther:
tell pop up button 1
click
delay 1
tell menu 1
click menu item "PICT File"
end tell
end tell
keystroke return
end tell
delay 1
keystroke return
end tell
end tell
return true
on error error_message
display dialog error_message
end try