Re: Selecting a pop up button value in a Print dialog
Re: Selecting a pop up button value in a Print dialog
- Subject: Re: Selecting a pop up button value in a Print dialog
- From: Jim Brandt <email@hidden>
- Date: Wed, 10 Mar 2010 15:50:40 -0600
Axel,
Your code didn't work for me (I'm still running 10.4.11 Tiger on a PowerPC). The event log shows the line as if it executed but nothing happens, the name of menu items command returns an empty list and the tell menu item 1 perform action "AXPress" gives a System Events got an error: NSReceiverEvaluationScriptError: 4 error (which makes sense since the menu item list is empty.)
Was AXPress something that changed from 10.4 to 10.6?
Any other thoughts?
Jim
The line: perform action "AXPress" did nothing. On Mar 10, 2010, at 12:22 PM, Axel Luttgens < email@hidden> wrote: tell application "System Events" tell application process "Safari" tell front window tell sheet 1 tell pop up button 3 -- Display the local menu perform action "AXPress" tell menu 1 -- Q2: get available "values" name of menu items -- Q1: select an option tell menu item 1 perform action "AXPress" end end tell end tell end tell end tell end tell end tell
In the hope above skeleton may be of some help, 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