• 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 17:55:42 -0500

On Monday, January 20, 2003, at 04:08 PM, Philip Aker wrote:

On Monday, January 20, 2003, at 12:29 PM, Paul Skinner wrote:

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


Nope. I wanted something directly simple:

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


:-)


Philip Aker

Right. I assumed so. But I suggested something possible instead. I'm not entirely sure that what you're asking for is a good thing, but I am pretty sure you aren't going to get it. 'click' belongs to System Events. I don't think you're going to be able to give it to another app, and you're never going to get an application process to accept being the target of a tell.
So, If you want to avoid the double tell then you're going to have to be easier to please. : )

If you're going to request this feature why not just ask that the 'click button' and other System Events commands get redirected to the application process if you direct it at the application?
ie.

tell application "Dock"
click button "so 'n so"
end

I'm sure that would be just as difficult to implement and looks even better. Perhaps this will happen when System Events is rolled in. Perhaps you'll even be able to browse the GUI containment hierarchy in Script Editor. Perhaps not.
--
Paul Skinner
_______________________________________________
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>
    • Re: GUI Scripting
      • From: Paul Skinner <email@hidden>
References: 
 >Re: GUI Scripting (From: Philip Aker <email@hidden>)

  • Prev by Date: how long can an applescript be?
  • Next by Date: Noted at Macsurfer
  • Previous by thread: Re: GUI Scripting
  • Next by thread: Re: GUI Scripting
  • Index(es):
    • Date
    • Thread