RE: more news from the front
RE: more news from the front
- Subject: RE: more news from the front
- From: "Wallace, William" <email@hidden>
- Date: Tue, 17 Dec 2002 13:03:48 -0600
Actually the real culprit turned out to be something else. This works fine:
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
close document 1 saving no
end tell
This, however, does not:
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
set vertical measure to inches --THIS IS THE CULPRIT
print PostScript file ("Startup:Desktop Folder:" & docName &
".ps")
end tell
close document 1 saving no
end tell
No matter what I try (putting extra commands in before the close command,
breaking the code up into separate blocks and wrapping them with ignoring...
statements, etc.) it will always crash Quark. Even if I remove the close
command altogether and then try to close the document manually after the
script has finished executing.
...very annoying
-whw
>Subject: RE: Can't close doc in Quark
>Date: Tue, 17 Dec 2002 11:21:45 -0600
>
>Okay, didn't take long for it to break again (in fact, the one time
it
>worked was some kind of fluke, or I did something different without
>realizing it). Anyway, I've found that if I move the close command
to a
>separate tell block and wrap that second tell block in an ignoring
>application responses block, it seems to work fine. Phew! Thanks
for
>playing. You've been a great crowd. I'll be here all week. Don't
forget to
>tip your bartender and waitresses.
>
>;-}
>
>-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.