|
|
Print from OS 9 to an OS X network printer via AppleScript
To get around not having a compatible program do this:
On the OS 9 box:
property spoolFolder : "MacHD:Remote Spool" as alias -- Make sure that spoolFolder points to where you are saving the ps files tell application "Finder" set theItems to every item of spoolFolder set theCount to count theItems if theCount > 0 then mount volume "afp://server_ip/drop_box_volume" duplicate theItems to folder "Drop Box" of disk "drop_box_volume" delete theItems put away disk "drop_box_volume" end if end tellI tried to make this a folder action, but it would not run unless the folder was open. If you have a PostScript printer the file should just print without an external application. If you are not so fortunate(like me) then the best way to print it is to convert it to a pdf file. To do this in AppleScript just add something like this to the folder action script on the OS X box. do shell script "/usr/bin/ps2pdf -dPDFSETTINGS/printer " & source_file & " " & dest_fileThen delete the .ps file and print the .pdf file. This way the file will be printed with Preview or Acrobat Reader. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|