• 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: Referencing "unknowns" with UI scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Referencing "unknowns" with UI scripting


  • Subject: Re: Referencing "unknowns" with UI scripting
  • From: kai <email@hidden>
  • Date: Mon, 27 Feb 2006 09:15:43 +0000


On 27 Feb 2006, at 03:41, email@hidden wrote:

UI Element Inspector reports the following for a button I'm trying to
click on in Apple's Print window as follows:

<AXApplication: ?Notes?>
 <AXWindow: ?Print?>
  <AXUnknown>
   <AXUnknown>
    <AXPopUpButton>

How do I reference it with the 2 unknowns as parents?

Try 'UI element' by index, Coj:

UI element 4 (* or whatever *)

ps. After trying to script the Page Setup window of Notes I realised that
the options for the destination printer, paper size and orientation are
not accessible even with UI scripting. I even tried looking at it from
inside Safari, thinking that perhaps just Notes was useless but it seems
to be an OS thing, not just app specific.


Printing is such a basic function, surely Apple would include these things
for scripting... at least with UI!!!

If you're having difficulty registering clicks, and don't feel like waiting for the remaining wrinkles in the UI scripting implementation to be ironed out, check out Extra Suites:


http://www.kanzu.com/main.html#extrasuites

It really is the most effective solution I've found so far. In case they might help, a few recent references:

http://lists.apple.com/archives/applescript-users/2006/Feb/msg00046.html
http://bbs.applescript.net/viewtopic.php?pid=53499#p53499
http://bbs.applescript.net/viewtopic.php?pid=53665#p53665

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Referencing "unknowns" with UI scripting
      • From: kai <email@hidden>
References: 
 >Referencing "unknowns" with UI scripting (From: email@hidden)

  • Prev by Date: Referencing "unknowns" with UI scripting
  • Next by Date: Re: OT: HTML mail and multi-part mime [ not Re: list syntax ]
  • Previous by thread: Referencing "unknowns" with UI scripting
  • Next by thread: Re: Referencing "unknowns" with UI scripting
  • Index(es):
    • Date
    • Thread