Re: gui scripting
Re: gui scripting
- Subject: Re: gui scripting
- From: julifos <email@hidden>
- Date: Fri, 17 Jan 2003 10:13:57 +0100
>
I've been able to identify the the button I want clicked, but when I
>
wrote the following script and ran it, nothing happened. I do have the
>
proper settings in the universal access pane. Is there something else I
>
might be missing?
>
>
Here is the script:
>
>
tell application "Finder"
>
activate
>
end tell
>
tell application "System Events"
>
tell UI element 4 of UI element 6 of window "Print" of process
>
"Appleworks 6"
>
click
>
end tell
>
end tell
>
>
Any help would be appreciated!
>
>
Peter
This syntax works for me:
tell app "System Events"
tell process "Target App"
-- ui-script whatever
end
end
Or, which is the same:
tell app "System Events" to click button 1 of window 1 of process "Mail"
--> close
JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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.