• 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: printing PDF files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing PDF files


  • Subject: Re: printing PDF files
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 11 Nov 2009 11:43:05 -0800
  • Thread-topic: printing PDF files

> I'm kind of surprised you need Acrobat.  Try 'do shell script "lpr my.pdf"'.
> What about using the Printer Setup Utility?

>>tell application "Printer Setup Utility"
>>    open alias "path to:your.pdf"
>>end tell

If all you want to do is dump a file into a printer, then those would work.
But, there is a lot more to printing, and very often automating printing
PDFs does require extensive appleScript and often requires GUI scripting for
part of the process.

For example, simple and common things like printing odd pages, pausing, then
printing even pages.

Doing anything with Page Set Up, including selecting trays, paper size,
layout, color info, fonts, error reporting, etc. etc. becomes challenging to
say the least.

Even something a simple as fitting the printed size to the page size needs
applescript and an app like Acrobat, Pages or preview to automate.

Almost anything complex requires GUI scripting to automate.

Some of those options are available via CUPS, but this is one of
AppleScripts blind spots, and better support for printing and printing
options has an incredible potential for improvement. *

ES

*I'm talking to you, Chris(x)

 _______________________________________________
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: printing PDF files
      • From: CYB <email@hidden>
References: 
 >Re: printing PDF files (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Screen Saver ON/OFF!
  • Next by Date: Re: printing PDF files
  • Previous by thread: Re: printing PDF files
  • Next by thread: Re: printing PDF files
  • Index(es):
    • Date
    • Thread