Re: AppleScript, QuarkXpress, PostScript
Re: AppleScript, QuarkXpress, PostScript
- Subject: Re: AppleScript, QuarkXpress, PostScript
- From: Chris Stone <email@hidden>
- Date: Tue, 14 Nov 2000 12:34:43 -0800
FYI, I emailed Quark Scripting support with the same question and got
the following reply:
Hope it helps...
At 4:25 PM -0600 10/6/00, scripting support wrote:
From: scripting support <email@hidden>
To: "'Chris Stone'" <email@hidden>
Subject: RE: properties of print setup question
Date: Fri, 6 Oct 2000 16:25:44 -0600
Hi Chris,
There is a known issue where AppleScript will not recognize custom page
sizes for printing documents or creating PostScript files. However, you can
get custom page sizes using AppleScript when you use the Generic Imagesetter
PPD, as the default Paper Size is Custom. Below is my adaptation of your
script which I believe will do what you want to do:
tell application "Finder"
activate
set psdoc to (choose file with prompt "Choose document:") as string
tell application "QuarkXPress(tm) 4.11"
tell document 1
set properties of print setup to ,
,
,
,
,
{adjust horizontal tile:false, back to front:false, bleed:0,
collate:false, data format:binary data, fit in area:false, flip
horizontal:false, flip vertical:false, halftone screen:"100", include blank
pages:true, invert image:false, page position:center position, page
sequence:all pages, paper offset:0, printer type:"Generic Imagesetter",
paper width:"4\"", print colors as grays:false, print quality:normal, print
spreads:false, print thumbnails:false, reduce or enlarge:"100%",
registration marks:off, resolution:600, separation:false, tiling:off} ,
print PostScript file psdoc & ".ps"
end tell
-- This will create a delay to give the driver the time to write the
PostScript file
set go to false
tell application "Finder"
set myFile to psdoc & ".ps"
repeat until go is true
if exists (alias myFile) then set go to true
end repeat
end tell
end tell
end tell
I hope this information helps. Please let me know if you have any additional
questions or concerns.
Regards,
Greg Stretton
Quark Technical Support
-----Original Message-----
From: Chris Stone [mailto:email@hidden]
Sent: Wednesday, October 04, 2000 1:34 PM
To: email@hidden
Subject: properties of print setup question
Hi,
I'm trying to get Quark to print to a PostScript file with a page size equal
to the actual layout size, not the printer sheet size. I can set "paper
width:x as point units" in properties of print setup, but that doesn't seem
to do it (it ends up as the printer sheet size). Also, I don't think it's
possible to set "paper height" or "paper size" properties. Is it possible
then to print to a PS file a page size different from the selected printer
sheet size?
I'd like to do this so I can then pass the .ps file on to Distiller to make
it a PDF. This is only part of a larger automated procedure I'm scripting.
Here's what I tried:
tell application "QuarkXPress 4.11"
open quarkdoc
tell document 1
set x to page width
set properties of print setup to {adjust horizontal
tile:false, back to front:false, bleed:0, collate:false, data format:binary
data, fit in area:false, flip horizontal:false, flip vertical:false,
halftone screen:"100", include blank pages:true, invert image:false, page
position:center position, page sequence:all pages, paper offset:0, paper
width:x as point units, print colors as grays:false, print quality:normal,
print spreads:false, print thumbnails:false, printer type:"Acrobat
Distiller", reduce or enlarge:"100%", registration marks:off,
resolution:600, separation:false, tiling:off}
print PostScript file psdoc
end tell
end tell
I'd *really* appreciate any help you could give me with this!
Thanks,
Chris Stone
Macintosh Systems Administrator
O'Reilly & Associates
www.oreilly.com
(707) 829-0515 x382
At 1:07 PM -0700 11/14/00, David Marcon wrote:
I am having a hard time setting up a script that will get QuarkXpress to
print a custom size page to PostScript. I want to be able to have a drag and
drop script that when QuarkXpress documents are dragged on it it would print
a PostScript file formatted with the Acrobat Distiller PPD and have it print
the file to the size of the document. At this time I have a script that does
all the things I need with the exception of getting the page size correct.
If I pug the specific page width and page offset values they are ignored. If
I try to get the script to change the page size it errors telling me it
can't change the values. It's like its tied to the LaserWriter software. I
am going to post a copy of what I have at:
ftp://curly.newtimes.com/pub/out/PrintToAcrobatPS.hqx
Any help would be appreciated.
--
David Marcon
Mac System Specialist
New Times Inc.
1201 E. Jefferson
Phoenix, AZ 85034
email@hidden
602-238-4819
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users