Creating a PS file in Quark
Creating a PS file in Quark
- Subject: Creating a PS file in Quark
- From: Ari Winokur <email@hidden>
- Date: Mon, 29 Apr 2002 12:21:45 -0400
Hey all...
I've recently written a script to create PS files to put through Distiller.
Unfortunately the script is not working half the time. I have included the
content of the script below. Either I get an error on Print Monitor and no
PS file is created or a file is created but Distiller produces an error and
I don't get a PDF. When this happens if I manually perform the steps of the
script to create a PS file it works just fine and from there the script
typically begins working again. Can anyone figure out what is going on?
Additionally if someone can help me to attach additional scripting for
Distiller I would appreciate it.
Thanks,
Ari W.
P.S. Please send responses to my email address and not just the group.
Thanks.
--------------
Ari Winokur
Multimedia Manager
Heldref Publications
1319 Eighteenth Street, NW
Washington, DC 20036
email@hidden
email@hidden
-- Begin script --
tell application "QuarkXPress(tm)"
set printer type of print setup of front document to "Acrobat Distiller"
set dlgResult to display dialog "Choose a page width:" buttons {"8.5 in", "6
in", "Cancel"} default button 3 with icon note
if button returned of dlgResult = "8.5 in" then
set strPageWidth to "51p"
else if button returned of dlgResult = "6 in" then
set strPageWidth to "36p"
end if
set paper width of print setup of front document to strPageWidth
set dlgResult to display dialog "Name the file:" default answer "File Name"
with icon note
set strFIlename to text returned of dlgResult
set strPostScriptFolder to "Heldref Laptop:Desktop Folder:"
set strFullFilePath to (strPostScriptFolder & strFIlename) as string
print front document PostScript file strFullFilePath
end tell
--End script --
_______________________________________________
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.