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.