Re: [Pythonmac-SIG] Using appscript for GUI interaction, button click

2009-09-13 Thread Charles Miller
Yes, that worked, thanks. Also, thanks for the advice to use ASTranslate. I've had no formal idea how to do the translation from apple script to appscript and so mostly just guess and use common sense, which obviously doesn't always work! Thanks again!!! Charlie On Sep 13, 2009, at 12:

Re: [Pythonmac-SIG] Using appscript for GUI interaction, button click

2009-09-13 Thread has
Charles Miller wrote: I'm trying to perform the following applescript with the appscript Python module: tell application "System Events" tell process "Preview" to click button "OK" of every window end tell If you're not sure how to translate an AppleScript command to the equivalen

[Pythonmac-SIG] Using appscript for GUI interaction, button click

2009-09-12 Thread Charles Miller
I'm trying to perform the following applescript with the appscript Python module: tell application "System Events" tell process "Preview" to click button "OK" of every window end tell Is this possible? The closest I got was import appscript appscript.app('System Events').processes[