• 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
UI printer selection problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UI printer selection problem


  • Subject: UI printer selection problem
  • From: Oakley Masten <email@hidden>
  • Date: Mon, 27 Aug 2007 12:18:10 -0700 (PDT)

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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: UI printer selection problem
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: iWork Numbers
  • Next by Date: Re: Shell script fails to return desired results
  • Previous by thread: Re: Shell script fails to return desired results
  • Next by thread: Re: UI printer selection problem
  • Index(es):
    • Date
    • Thread