I managed to get perl to send faxes using the 'fax' front-end
program, but never satisfactorily. I had to use root user to send
faxes and I never managed to send any faxes that has graphics in the.
In the end I installed PageSender, which has examples of sending
faxes via AppleScript, and I called the AppleScript from perl. I know
that sounds a lot more round-about but it had a lot of advantages
for me. I could send HTML files, correctly formated, and there is a
record kept which you can view in the GUI of all faxes send, or not.
If you do get something working, I'd be very interested to know how
you got it done
Robert Whittle
On 18 Jan 2006, at 08:29, Dominic Dunlop wrote:
On 2006–01–17, at 20:29, Bill Stephenson wrote:
Is there a way to fax a document using the built-in Mac OSX (10.3)
fax feature with perl?
Well, the command-line program underlying the facility is efax.
There's also a simplified front-end program, fax. You could try
calling either of those with system() or whatever. Alternatively,
CUPS makes the fax modem visible as a printer once it's configured
-- run lpinfo -v and you should see it listed. This means that
you should be able simply to pipe the stuff you want to fax to lpr.
The trick would be to work out what option you need to put on the
command line in order to get the number dialled, and acceptable
formats for the data. (Text is probably OK. Beyond that, I've no
idea.)
Not that I've tried either possibility myself.
I want to write a script that faxes selected members of congress
my humble opinions ;)
A laudable aim.
--
Dominic Dunlop