MACSCRPT Archives

November 2007

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:
Levon Spradlin <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 29 Nov 2007 13:35:40 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
I tested something out and found an inconsistency.

    tell application "QuarkXPress"
       tell front document
           tell every text box
               tell every character
                   set xFont to font
                   set xStyle to style
                   if style is not plain then
                       display dialog "Not Plain."
                   end if
                   if style is plain then
                       display dialog "Plain."
                   end if
               end tell
           end tell
       end tell
    end tell

Returns this as a result in Script Editor:
    {class:text style info, on styles:{bold, all caps}, off styles:{plain,
italic, underline, outline, shadow, superscript, subscript, superior,
strikethrough, small caps, word underline}}

But it returns this as a result from Script Debugger 4, regardless of the
file contents:
    {class:text style info, on styles:{italic, shadow, superscript,
superior, all caps}, off styles:{plain, bold, underline, outline, subscript,
strikethrough, small caps, word underline}}

I am not sure what that means, but SD4 is not return the proper results, and
can not act upon them as well.

Levon Spradlin
Technology Manager, Desktop Publishing Support Services
Pearson | Assessment & Information
512-989-5300 x 3989
[log in to unmask]

• "Never ask a man what computer he uses. If it's a Mac, he'll tell you. If
it's not, why embarrass him?" - Tom Clancy •


**************************************************************************** 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

ATOM RSS1 RSS2