• 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: UI scripting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI scripting question


  • Subject: Re: UI scripting question
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 19 Jul 2008 12:18:30 +0200

Le 19 juil. 08 à 11:20, Bill Cheeseman a écrit :

on 2008-07-19 4:23 AM, Axel Luttgens at email@hidden wrote:

keystroke "P" using command down

That should be a lowercase "p". The 'keystroke' command interprets an
upper-case character as having the shift key down as well as the command
key.

Hello Bill,

Remember, Jim's problem was to act upon the "Landscape" button in Safari's Page Setup dialog under Tiger; so, cmd+shift+p is indeed what is needed for opening that dialog.


set {X, Y} to position of sheet 1 of front window
set {X, Y} to {X + 202 + 19, Y + 165 + 19}
click at {X, Y}

Apple implemented the 'click at' command in such a way that it first gets
the UI element at that location and then sends 'click' to it. So it
generally fails whenever the UI element is unable to handle the 'click'
command anyway.

Just noticed: I forgot to write that I've tested the code I've provided and that is seems to be working in that precise case.
I must have been lucky. ;-)


Axel _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: UI scripting question (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: UI scripting question
  • Next by Date: Re: Mostly broken- Applescript + Leopard + Filemaker 6
  • Previous by thread: Re: UI scripting question
  • Next by thread: Re: UI scripting question
  • Index(es):
    • Date
    • Thread