RE: Can't seem to script printing PostScript file
RE: Can't seem to script printing PostScript file
- Subject: RE: Can't seem to script printing PostScript file
- From: "Goodman, Steve" <email@hidden>
- Date: Wed, 1 Aug 2001 16:24:07 -0500
>
>set Print_file to "HD:foo:bar.ps" -- path to you file
>
>set Printer_loc to "HD:Desktop Folder:your printer:" -- path
>
to your printer
>
>copy file Print_file to Printer_loc
>
>
This doesn't work for me. It results in the value of Printer_loc
>
being changed to the value in Print_file--nothing goes to the printer.
>
>
I tried a few variations on this, but couldn't find a version that
>
executed. E.g., "alias" instead of "file", "duplicate" or "move"
>
instead of "copy", direct string values in quotes instead of
>
variables.
>
>
What am I missing?
hmmm...well I did brain fart....It should have been "duplicate" and not
"copy" however they both work on my machine?!?.
Did you put it into the "tell finder" statement from your previous script?
It should look like this:
tell application "Desktop Printer Manager" to set default printer to desktop
printer "LaserJet 5"
set Print_file to "HD:foo:bar.ps" -- path to you file
set Printer_loc to "HD:Desktop Folder:your printer:" -- path to your printer
tell application "Finder"
copy file Print_file to alias Printer_loc
end tell
HTH
Steve Goodman
Vertis Advertising Production Services
phone 314.432.8800, ext. 479
fax 314.692.0309
email@hidden
www.vertisinc.com