Re: Saving EPS from Quark
Re: Saving EPS from Quark
- Subject: Re: Saving EPS from Quark
- From: Shane Stanley <email@hidden>
- Date: Mon, 10 Sep 2001 21:44:50 +1000
On 10/9/01 7:36 PM +1000, Rob Stott, email@hidden, wrote:
>
I'm just getting to grips with scripting Quark Xpress but I've hit upon a
>
stumbling block - I'm sure I'm missing something pretty obvious but for the
>
life of me I can't work it out. I have the following a script which saves
>
all the pages of a Quark document out as EPS files (okay, I know it a bit
>
clumsy... I'm just a beginner!)
>
>
tell application "QuarkXPress"
>
set theTotalNoOfPages to the count of the pages of front document
>
set theCount to 1
>
repeat
>
save page theCount of front document EPS format Mac color include
>
preview "true"
>
if theCount = theTotalNoOfPages then exit repeat
>
set theCount to theCount + 1
>
end repeat
>
end tell
>
>
This works fine, but omits any bleed - I need to include these. Can anyone
>
tell me how I do this? I can't find a reference to it in Quarks dictionary
>
but surely it must be do-able, right?
Look up the save command and you'll see:
[bleed vertical measurement] -- bleed option for Save Page as EPS
Also, the "true" after "include preview" should not be in quotes.
So you will want something like:
tell application "QuarkXPress 4.11"
set theDoc to (file path of document 1) as text
repeat with i from 1 to count of pages of document 1
save page i of document 1 EPS format Mac color bleed "18 pt" in file
(theDoc & i & ".eps") scale 100 with include preview
end repeat
end tell
--
Shane Stanley, email@hidden