Re: Does Quark 3.32 support Program Linking (that's Printing PS files)
Re: Does Quark 3.32 support Program Linking (that's Printing PS files)
- Subject: Re: Does Quark 3.32 support Program Linking (that's Printing PS files)
- From: JJ <email@hidden>
- Date: Wed, 11 Jul 2001 12:27:33 +0200
>
I am attempting to create a PS output dropplet. Here is my first attempt,
>
which dies on "open CurrentFile". I cant figure out why. The error code
>
reported is "32767". Can anyone let me know what is wrong?
>
>
/Michael
>
>
>
copy {alias "Kira:Desktop Folder:test1", alias "Kira:Desktop Folder:test2"}
>
to docList
>
>
--on open (docList) -- program intended to be dropplet eventually
>
repeat with CurrentFile in docList
>
tell application "QuarkXPress 4.1"
>
open CurrentFile use doc prefs yes
>
>
-- script dies here
No, it doesn't.
>
tell document 1
You don't need "tell document 1"
>
set document 1's print setup to -- next line
because you are telling it here above.
So, script dies here:
"can't set print setup of document 1 of document 1 to..."
Re-write:
set print setup to --your settings
>
{orientation:portrait, page position:centered, page
>
sequence:all pages, paper size:"11x17", paper width:"48p", print colors as
>
grays:false, print quality:normal, print spreads:false, print
>
thumbnails:false, printer type:"Color General PPD", registration marks:off,
>
resolution:300, separation:false, tiling:off}
>
>
try
>
print PostScript file (CurrentFile as string) & ".ps"
>
on error
>
display dialog "Error Printing"
>
end try
>
>
end tell
>
end tell
>
end repeat
>
--end open
Done!
JJ