[cups] Print with ICC-profile from command line, using lpr / OSX. Impossible?

Michael Sweet msweet at apple.com
Tue Dec 15 11:26:32 PST 2015


Erik,

> On Dec 15, 2015, at 2:17 PM, Erik Wåhlström <erik at erikwahlstrom.se> wrote:
> 
> Thank you Michael for the straight answer. The technical level of this is
> way out if my league, but I'm trying my best to understand it all. I'm also
> extremely humbled to get an answer directly from you.
> 
> In very simplified terms; would it be possible to create a custom xcode app
> that use Core Printing to hand of a color managed print job to cups without
> any other bells 'n' whistles?

The simplest thing would be to do a short bit of AppleScript (the "osascript" command) to tell Preview to print the file, something like:

    osascript -e 'tell application "Preview" to print "filename"'

_________________________________________________________
Michael Sweet, Senior Printing System Engineer




More information about the cups mailing list