Mailing Lists: Apple Mailing Lists

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

UI printer selection problem



Greeting good people.

Using UI Scripting I am trying to set the printer for
my Excel doc from within the Excel Print window.  I
can get the current printer name but can't change it
to a new one.
Can anybody point me in the right direction on this?

I have a registered copy of "UI Browser" but it is not
helping here.
I am writing in ScriptDebugger 4 on a G5 OSX 10.4.9

activate application "Microsoft Excel"
tell application "Microsoft Excel"
	tell application "System Events"
		tell process "Excel"
			
			delay 1
			get value of pop up button 3 of window "Print"
			set whatme to value of pop up button 3 of window
"Print"
			
			--whatme shows a value of "Toshiba_Print"  --Which
is correct
			
			set value of pop up button 3 of window "Print" to
"HP5100  Creative"
			--this does not work  --How do I get it to work?

		end tell
	end tell
end tell

I can't figure out how to choose an item from a drop
down list would appear to be the issue.

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

This email sent to 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.