in

Quark Forums

To get on styles of a character in a style spec -Quark6.52

Last post 08-20-2009 2:26 AM by elpy zee. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-13-2009 6:35 AM

    • Sankar
    • Top 150 Contributor
    • Joined on 05-06-2008
    • India
    • Posts 86

    To get on styles of a character in a style spec -Quark6.52

    I can get syles info of a style spec for example "Normal" by

                get styles of character attributes of style spec "Normal",

    but it gets all info like class name,on styles and off styles.

    I need only "on style" in a style spec. How can i get those.. Any suggestion will help me more to do better result

  • 08-20-2009 2:26 AM In reply to

    Re: To get on styles of a character in a style spec -Quark6.52

    Something like this might work as a workaround:

    tell application "QuarkXPress"
        tell document 1
            set styleList to style of character attributes of style spec "Test" as list
            set onStyles to item 2 of styleList
        end tell
    end tell

    I couldn't get the on styles directly. The style "Test" used the "Default" setting for Character Attributes Style, and had Bold, Small Caps, and Superscript checked--all were returned by the script. QXP 6.52.

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems