• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Can't seem to script printing PostScript file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Can't seem to script printing PostScript file
      • From: "David B. Gustavson" <email@hidden>
  • Prev by Date: Re: formatting AS source for web
  • Next by Date: RE: Apple System Profiler
  • Previous by thread: RE: Can't seem to script printing PostScript file
  • Next by thread: RE: Can't seem to script printing PostScript file
  • Index(es):
    • Date
    • Thread