Can't close doc in Quark
Can't close doc in Quark
- Subject: Can't close doc in Quark
- From: "Wallace, William" <email@hidden>
- Date: Mon, 16 Dec 2002 16:39:03 -0600
Quark keeps choking on the close command. I have this script that prints a
Quark document to a postscript file and then at the end issues a "close
document 1 saving no" command. If I remove all but the open and close
commands from the script it works fine, so the command itself works fine, so
something in the rest of my code is preventing it from executing but I can't
figure out what it is. Here is an abbreviated version of the script.
tell application "QuarkXPress(tm) 4.11"
set sourceDoc to choose file with prompt "Select a file..."
open sourceDoc use doc prefs yes remap fonts no do auto picture import no
tell document 1
set docName to name
set print setup to {printer type:"MHC Distiller"}
set print setup to {paper size:"Letter"}
print PostScript file ("Startup:Desktop Folder:" & docName & ".ps")
end tell
close document 1 saving no
end tell
I've tried different references to the document (i.e. front document,
document docName, etc), and I've tried moving the command around in the code
(even putting it in a completely separate tell block), but no luck. 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?
Thanks,
-whw
_______________________________________________
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.