Hi all,
I am trying to create an apple script to check if a window with the name "Save" exists in a particular application. If the "Save" window appears it will 'save' and 'replace' the file in a particular folder. I am assuming i will use GUI scripting. this is what i have so far. Thanks for any ideas in advance. tim
on idle tell application "MaxMSP" if (window "Save" exists) then -- THIS LINE DOES NOT WORK tell application "MaxMSP" activate end tell
tell application "System Events" click button "Save" of window "Save" of application process "MaxMSP" end tell
tell application "MaxMSP" activate end tell
tell application "System Events" click button "Replace" of window 0 of application process "MaxMSP" end tell
end if end tell return 5 -- do this every 5 seconds end idle
Tim Devine _________________ Artist in Residence State Library of Victoria ________________________ LAB.NEONGOLDEN.NET
|