• 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: Paul Skinner <email@hidden>
  • Date: Mon, 20 Jan 2003 15:29:56 -0500

On Monday, January 20, 2003, at 03:19 PM, I wrote:

How about something like this?...


tell application "System Events"
tell process "Dock"
set dockTrashIcon to button "Trash"
end tell
end tell

tell application "System Events" to click the dockTrashIcon


hmm, I think maybe you wanted something more like...


tell application "System Events"
set APDock to process "Dock"
end tell

tell application "System Events"
click button "Trash" of APDock
end tell

--
Paul Skinner


On Monday, January 20, 2003, at 01:42 PM, Philip Aker wrote:

I wrote recently:

If you have the new UI scripting installed you can use something like:

tell application "System Events"
tell process "Dock"
click button "the name of my window minimized in the Dock"
end tell
end tell

Ya know, since "tell application System Events" seems to be required for all of the new facilities, it seems to me that it would be easier if all we had to do was make a call like:

tell UI process "Dock"
click button "so 'n so"
end

where the built-in 'UI process' (or whatever) would save the double tell (at least superficially). This could also mean that the underlying mechanism could change to suit low level implementation things that we might not necessarily be concerned with.



Philip Aker
http://www.aker.ca
_______________________________________________
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:
    • Re: GUI Scripting
      • From: Philip Aker <email@hidden>
References: 
 >Re: GUI Scripting (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: GUI Scripting
  • Next by Date: RE: AS to Change Owner of files
  • Previous by thread: Re: GUI Scripting
  • Next by thread: Re: GUI Scripting
  • Index(es):
    • Date
    • Thread