• 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: Philip Aker <email@hidden>
  • Date: Tue, 21 Jan 2003 08:36:10 -0800

On Monday, January 20, 2003, at 02:55 PM, Paul Skinner wrote:

Nope. I wanted something directly simple:

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

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.

I didn't say "application process". What I said was "UI process". A new term which would internally _be_ the overly-verbose 'tell application "System Events" to tell application "so 'n so"'.


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.

I kind of like that idea too, but methinks the AppleScript engineers are trying to make a clear division between UI programming and things more application specific. Like say a Mail.app "mailbox" might be out of place in Disk Copy but the UI elements like windows and buttons are the common building blocks of all GUI applications. So cool to program for if all you had to do was implement 'get/set contents of' or 'source of' a la Safari.


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.

It would be nice. In the meantime, I've been using "UIElementInspector". Must remember to quit it when done because there's some weirdness with grow boxes if not.


Cheers,


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.

References: 
 >Re: GUI Scripting (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: GUI Scripting
  • Next by Date: Re: Textconverter?
  • Previous by thread: Re: GUI Scripting
  • Next by thread: AppleScript Studio
  • Index(es):
    • Date
    • Thread