Re: Print ps
Re: Print ps
- Subject: Re: Print ps
- From: "Alatorre, Michael" <email@hidden>
- Date: Wed, 18 Sep 2002 13:17:20 -0700
>
Message: 5
>
Date: Mon, 16 Sep 2002 15:48:44 -0400
>
From: Eric Grenon <email@hidden>
>
Subject: Print ps
>
To: email@hidden
>
I have an Applescript question - and forgive me if I'm way off base - I'm a
>
complete novice with Applescript.
>
>
Is it possible to have Applescript do the following scenario:
>
>
With OSA Menu installed, have a menu item (script) called "Archive
Document"
>
>
This script would call a dialogue allowing the user to browse their desktop
>
volumes and select a file.
>
>
Once this file is selected, verify or switch the print driver to
>
Laserwriter 8, and then print the document to file -- thus creating a
>
postscript file
>
>
I would want this postscript file to be printed (saved) to a particular
>
network volume, so the script would have to handle the situation if the
user
>
does not have the volume mounted - such as an error message and some sort
of
>
a prompt for them to connect to this particular server volume.
>
>
Another twist on the same scenario would be to have an OSA Menu that was
>
"Archive THIS document" - which a user could invoke while in a document and
>
bypass the browsing portion. The rest of the scenario would remain the
>
same.
>
>
Then as a final twist - this would have to work with OSX too.
Okay, since I haven't seen a reply to this, I'll take an awkward lunge at
this. The last sentence is the kicker, isn't it? I could be wrong, but I've
yet to see a Applescript/Postscript workflow solution for OS X (please,
please tell me listas if there is one). When I'm producing PS with an
Applescript workflow, I've booted back into OS 9. If you're interested in
that (where it applies), see below:
>
This script would call a dialogue allowing the user to browse their desktop
>
volumes and select a file.
choose file
>
Once this file is selected, verify or switch the print driver to
>
Laserwriter 8, and then print the document to file -- thus creating a
>
postscript file
I use AdobePS driver (8.7.x), Virtual Printer desktop printer (it's
dedicated desktop printer that produces PS files...it'll install itself once
you use AdobePS), and Desktop Printer Manager to accomplish this:
-- change default Desktop Printer
set the DTP_name to "Virtual Printer"
tell application "Desktop Printer Manager"
set the default printer to desktop printer the DTP_name
end tell
>
I would want this postscript file to be printed (saved) to a particular
>
network volume, so the script would have to handle the situation if the
user
>
does not have the volume mounted - such as an error message and some sort
of
>
a prompt for them to connect to this particular server volume.
tell application "Finder"
if not (disk "volumename:" exists) then
try
mount volume
"afp://username:myPassword@servername/volumename"
end try
end if
end tell
>
Another twist on the same scenario would be to have an OSA Menu that was
>
"Archive THIS document" - which a user could invoke while in a document and
>
bypass the browsing portion. The rest of the scenario would remain the
>
same.
This would seem to me as specific to the application that created or has
open that document. You'd need to look at that app's dictionary and invoke
the print command via the script.
Anyway, hope this helps.
Michael Alatorre
- doing OS 10.2 on a PowerBook G3 500mhz
- Outlook 8.2.2 in Classic mode
* some wise person once said:
"A computer lets you make more mistakes faster than any invention in human
history with the possible exceptions of handguns and tequila."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.