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: "David B. Gustavson" <email@hidden>
- Date: Tue, 31 Jul 2001 19:56:29 -0700
At 9:04 AM +0200 7/31/01, JJ wrote:
> Can you see anything I ought to try? Is there another approach that might
> work?
> tell application "Finder"
activate
select item "LaserJet 5" --succeeds
open selection --succeeds
> select item "SFCU.ps" of folder "Forms" of startup disk --succeeds
> duplicate selection to desktop of startup disk with replacing
> select item "SFCU.ps" of desktop -- succeeds
> move selection to item "LaserJet 5" --Error -1753 (but works for Joshua!)
> -- The preceding causes the file to be interpreted for Joshua,
but not me.
> end tell
"move" command isn't a "drag & drop" transaction.
You can "move" an object to a location (not onto other object -item)
OK, but this does work for another person! Just not on my (same
system) machine.
What about
tell application "Desktop Printer Manager" to (opt+L)
set default printer to desktop printer "LaserJet 5"
tell application "Finder" to (opt+L)
print alias "HD:Desktop Folder:PrintJobs:My.ps"
What this does is to launch BBEdit, the creator of the .ps file, and
make BBEdit print the file as a listing of the PostScript.
What I want is for the file to be printed by interpreting the
PostScript in the printer. Dragging the file onto a desktop printer
does what I want. There ought to be some way to script the equivalent.