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:
"Dr Digby L. James" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 7 May 2003 14:38:23 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
I'm new here and this may be a FAQ, in which case apologies and
please point me to it (I couldn't find it from searching the archive.

I had a script for Quark 4.11 that would search out numbers set in
Adobe Garamond and change them to Adobe Garamond Expert. This worked
with no problems. 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? Is there a better way to do this? The event log shows it
getting as far as the "set" line.

tell application "QuarkXPress"
        activate
        tell document 1
          with timeout of 600 seconds
            set font of every character of every text box of every page 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
          display dialog "Script completed successfully!"
        end tell
end tell

--
_________________
Dr Digby L. James
Quinta Press
http://www.quintapress.com
Meadow View
Weston Rhyn
Oswestry
Shropshire
England
SY10 7RN
Phone (44)(0)1691 778659
Mobile (44) (0)7970 678144
Fax (44)(0)1691 777638
_________________

ATOM RSS1 RSS2