MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bart Lateur <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 8 May 2003 01:25:13 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
On Wed, 7 May 2003 14:38:23 +0100, Dr Digby L. James wrote:

> I upgraded to Quark 5.01 and it broke. I finally
>managed to get a version that worked (below) on a single page single
>text box file. When I try and use it with a 52 page booklet with
>three text boxes per page it times out (even though I've set the
>timeout to 10 minutes) and Quark crashes. Am I missing something
>obvious?

Try doing it for each page individually, in a loop. Likely building the
list takes too long and takes too much memory. Untested:

tell application "QuarkXPress?"
        activate
        tell document 1
          repeat with i from 1 to (get count pages)
            tell page i
            show
          with timeout of 600 seconds
            set font of every character of every text box whose ¬
             (it is "1" or it is "2" or it is "3" or it is "4" or it is¬
              "5" or it is "6" or it is "7" or it is "8" or it is "9"
or it is "0") ¬
              and font is "AGaramond" to "AGaramondExp"
          end timeout
          end tell
          end repeat
          display dialog "Script completed successfully!"
        end tell
end tell

With the "show" displaying each page in turn, you can follow its
progress.

--
        Bart.

ATOM RSS1 RSS2