Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Click menu item with option key down



click: cause the target process to behave as if the UI element were clicked
	click  UI element  -- The UI element to be clicked.
		[at  list]  -- when sent to a "process" object, the { x, y }
location at which to click, in global coordinates
	Result:   UI element  -- the reply for the command

Above is the System Events Applescript Dictionary entry for the click
command. Unfortunately I do not see anything about modifiers
parameter.  Hopefully I am wrong...

-Rhon
On 4/22/05, Christopher Hickman <email@hidden> wrote:
> I don't have a Mac right now to test, but doesn't the click command have a
> 'with modifiers' parameter?  Check the System Events dictionary...
> 
> Topher
> 
> -----Original Message-----
> From: applescript-studio-bounces+tophu=email@hidden
> [mailto:applescript-studio-bounces+tophu=email@hidden] On Behalf
> Of rfitz
> Sent: Thursday, April 21, 2005 9:02 PM
> To: AppleScript Studio
> Subject: Click menu item with option key down
> 
> How can I change the code below so that when the click action is
> called, it sends a click with the option key down.
> 
> activate application "Printer Setup Utility"
> tell application "System Events"
>         tell process "Printer Setup Utility"
>                 click menu item "Add Printer." of menu "Printers" of menu
> bar item
> "Printers" of menu bar 1
>         end tell
> end tell
> 
> In order to get the advanced menu item to appear, you need to hold
> down the option key and either click the Add button or hold the option
> key and select Add Printer from the Printers menu.
> 
> Any suggestions would be appreciated.
> 
> Thanks,
> 
> -Rhon
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-studio mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/applescript-studio/email@hidden
> 
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Click menu item with option key down (From: rfitz <email@hidden>)
 >RE: Click menu item with option key down (From: "Christopher Hickman" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.