• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: gui scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • gui scripting for IE5.2
      • From: "Caerwyn Pearce" <email@hidden>
  • Prev by Date: Re: Long Int/One's compliment for Time_t
  • Next by Date: Re: [ADMIN] Sorry for the dups
  • Previous by thread: gui scripting
  • Next by thread: gui scripting for IE5.2
  • Index(es):
    • Date
    • Thread