Fax from XP script
Here is the script, the file to be faxed must be placed along a path without spaces, otherwise it will fail. On MBP, the priner queue is External_Modem. On other systems it may be named differently. Again this has been tested only with text files. Use at your own risk. Comments welcome.
--Begin Script
on adding folder items to this_folder after receiving these_items
tell application "Finder"
try
repeat with i from 1 to number of items in these_items
set f to item i of these_items
--Hide the extension
set extension hidden of f to true
set p to POSIX path of f
set phn to displayed name of f
--que name is External_Modem on MBP
set cmd to "lp -d External_Modem -o phone=" & phn & " " & p
do shell script cmd
end repeat
end try
end tell
end adding folder items to
Last edited: Jun 30, 2006