cypress has asked for the wisdom of the Perl Monks concerning the following question:

Is there a printer module for use in the Mac OS environment, one that simply can (and, I suppose, "can simply") feed a file to a default printer? Thanks.

Replies are listed 'Best First'.
Re: Win32::Printer-type module for Mac OS?
by jhourcle (Prior) on Jul 10, 2009 at 19:43 UTC

    It probably helps to know what Mac's printing interface is called.

    Net::CUPS sounds promising:

    use Net::CUPS::Destination; my $printer = $cups->getDestination( "lj4200dn" ); my $jobid = $printer->printFile( $filename, $title );
Re: Win32::Printer-type module for Mac OS?
by Anonymous Monk on Jul 10, 2009 at 12:37 UTC
      Yes, I may have to go with one of these. Unfortunately, neither can send a file as output to a printer -- only text or simple drawn shapes. Why should it be so difficult to specify a file? Note that even with Win32::Printer under Windows we must use Win32::Printer::Direct to name a file. Continued thanks for continued suggestions....
Re: Win32::Printer-type module for Mac OS?
by mzedeler (Pilgrim) on Jul 10, 2009 at 19:46 UTC

    Whats wrong with lp?