RE: applescript-users digest, Vol 3 #1150 - 12 msgs
RE: applescript-users digest, Vol 3 #1150 - 12 msgs
- Subject: RE: applescript-users digest, Vol 3 #1150 - 12 msgs
- From: "Wallace, William" <email@hidden>
- Date: Tue, 17 Dec 2002 10:00:35 -0600
I get the same problem even if I put extra commands in before the close
command. It executes everything up to the close command and then hangs. See
if this works on your machine (You'll have to modify the path to your
desktop, of course):
tell application "QuarkXPress(tm) 4.11"
activate
set sourceDoc to choose file with prompt "Select a file to PostScript..."
open sourceDoc use doc prefs yes remap fonts no do auto picture import no
tell document 1
set docName to name
print PostScript file ("Startup:Desktop Folder:" & docName & ".ps")
end tell
display dialog "Finished!"
beep
close document 1 saving no
end tell
I'm on MacOS 9.2.2, AS 1.8.3, Quark 4.11. I'm using the AdobePS driver with
a slightly modified version of the Acrobat Distiller PPD (I've just added
some extra page sizes to the PPD--it works flawlessly when printing
manually).
There does seem to be some issue with printing to the PostScript file or
with the driver perhaps. I just now modified the script slightly to print to
a HP laserjet (using Laserwriter8 driver), and it closes the document at the
end of the script without any complaint. Hmmm.
-whw
>
Date: Tue, 17 Dec 2002 11:50:29 +1100
>
Subject: Re: Can't close doc in Quark
>
From: Shane Stanley <email@hidden>
>
To: AS lists <email@hidden>
>
>
On 17/12/02 9:39 AM +1000, Wallace, William,
>
email@hidden, wrote:
>
>
> It always prints to the file, so it must be getting through that line of
>
code,
>
> but something's not relinquishing control of the document or something.
>
>
>
> Any ideas what the trouble is?
>
>
>
What happens if you put another command after the print and before the
>
close -- say, a display dialog? What OS version are you running? What
>
printer driver?
>
>
--
>
Shane Stanley, email@hidden
_______________________________________________
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.