UI Scripting put to good use (Was: UI Scripting flaking out on simple tasks)
UI Scripting put to good use (Was: UI Scripting flaking out on simple tasks)
- Subject: UI Scripting put to good use (Was: UI Scripting flaking out on simple tasks)
- From: Henrik Boes <email@hidden>
- Date: Wed, 31 Dec 2003 10:50:56 -0700
Thanks very much to Bill and Craig. Changing the syntax from
application to process did the trick ...
tell application "TextEdit" to activate
tell application "System Events"
if UI elements enabled then
click menu item "New" of menu "File" of menu bar item "File" of menu
bar 1 of process "TextEdit"
... allowing me to write the following little script as a login
application to enable Retrospect Client 5 (the software currently
doesn't stay on between reboots):
tell application "Retrospect Client" to activate
delay 1
tell application "System Events"
click radio button "On" of radio group 1 of window 1 of process
"Retrospect Client"
end tell
delay 5
tell application "Retrospect Client" to quit
It ain't much, I know, but to the likes of me, it's a satisfying use of
technology ...
Thanks again for the help.
Henrik Boes
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.