Re: turning on print options when printing a file
Re: turning on print options when printing a file
- Subject: Re: turning on print options when printing a file
- From: "koenig.yvan" <email@hidden>
- Date: Wed, 16 Jan 2013 18:56:00 +0100
Le 16/01/2013 à 18:44, William Adams < email@hidden> a écrit : Okay, I'm printing a file w/ the command:
tell application "HP LaserJet 8150 Series [EBFD97]" activate print pubsubFilepath without print dialog end tell
How do I control what options are used?
Specifically, I want to turn on the Watermark option and set it to be the variable pubsubFilepath.
I tried:
with options (watermark:true text:subfFileName)
but got an error (this is Mac OS X 10.6 FWIW).
Alternately / in addition --- how would I look up where to do this? I tried recording, but that didn't work, and couldn't find anything when accessing the dictionaries of the Finder and the Printer Setup Utility.
William
Look at the Applescript dictionary of the triggered application.
At first look, inserting a comma in the posted instruction may help :
with options (watermark:true, text:subfFileName)
An alternate scheme would be to trigger the printer driver thru GuiScripting.
Yvan KOENIG (VALLAURIS, France) mercredi 16 janvier 2013 18:55:47
|
_______________________________________________
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