• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Calling Dr. Staley, Dr. Haesler, Dr. Staley
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling Dr. Staley, Dr. Haesler, Dr. Staley


  • Subject: Calling Dr. Staley, Dr. Haesler, Dr. Staley
  • From: "Wallace, William" <email@hidden>
  • Date: Fri, 20 Dec 2002 13:15:40 -0600

First of all, if you've just joined us, what I'm trying to do is PostScript
Quark documents. The trouble is that these documents will come in a wide
range of page sizes so I need to be able to detect the document's page size
and set the document's print setup properties appropriately. I first
encountered a problem when I tried to change the vertical measure property
to inches. I worked around that by just getting the page dimensions in the
units they already were and then coercing them into the form I wanted to
work with.

However...

It turns out that setting the vertical measure property of a document isn't
the only problem. In fact it appears that I can't set *any* property of a
document. Well, actually I can set the property but if I do Quark will
completely choke if I try to close the document (either via AppleScript or
_manually!_). for instance, this works fine:

tell application "QuarkXPress(tm) 4.11"
activate
set aDoc to choose file with prompt "Select a file..."
open aDoc 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 does not:

tell application "QuarkXPress(tm) 4.11"
activate
set aDoc to choose file with prompt "Select a file..."
open aDoc use doc prefs yes remap fonts no do auto picture import no
tell document 1
set guides showing to true
-- or set any writable property of document 1 to a new value
print PostScript file ("Startup:Desktop Folder:" & docName & ".ps")
end tell
close document 1 saving no
end tell
On my machine this second script compiles fine, prints the PostScript file
without a hiccup, but will not close the document and Quark will become
unresponsive and hang the entire system until I force quit.

What I want to know is:

Is this a problem with Quark, AppleScript, or my machine? Has anybody else
out there encountered a similar problem? Can anyone out there run the second
of these two scripts (modifying the path to the desktop for your machine, of
course) without Quark taking a nosedive? If you can, then what are you doing
differently than me? Does anybody know if there is any way around this
problem either thru a different approach in the code, or via upgrading or
downgrading Quark or AppleScript?


H-E-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-L-P!

-whw

PS I'm using OS 9.2.2, AS 1.8.3, QXP 4.11
_______________________________________________
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.

  • Prev by Date: Re: Need help with script
  • Next by Date: RE: Feedback
  • Previous by thread: Re: File Info - Movie Preview Question from Paul Skinner
  • Next by thread: RE: Feedback
  • Index(es):
    • Date
    • Thread