• 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
Re: turning on print options when printing a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: turning on print options when printing a file
      • From: William Adams <email@hidden>
References: 
 >turning on print options when printing a file (From: William Adams <email@hidden>)

  • Prev by Date: Re: turning on print options when printing a file
  • Next by Date: GUI Scripting in Mail
  • Previous by thread: Re: turning on print options when printing a file
  • Next by thread: Re: turning on print options when printing a file
  • Index(es):
    • Date
    • Thread