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:
Tue, 13 May 2003 17:47:35 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Thanks all for the helpful advice. None of them worked - and then
they did. Very puzzling. doubtless this will take longer to get
finally resolved. Anyway, this currently seems to work.

tell application "QuarkXPress"
   activate
     tell document 1
       repeat with i from 1 to  (get count pages)
         tell page i
         show
           try
             set (font of every character of every text box whose ¬
             font is "AGaramond" and (it is in "1234567890")) to "AGaramondExp"
           end try
         end tell
       end repeat
     display dialog "Script completed successfully!"
   end tell
end tell

Using
             set (font of every character of every text box whose ¬
            (it is in "1234567890") and font is "AGaramond" ) to "AGaramondExp"

Also seems to work. I don't know if there is any speed difference
between the two.
--
_________________
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