plain, bold, italic, outline, shadow, underline, superscript, subscript, strikethrough, small caps, all caps, all lowercase, condensed, expanded, hidden


plain, bold, italic, outline, shadow, underline, superscript, subscript, strikethrough, small caps, all caps, all lowercase, condensed, expanded, hidden

Description

Text styles, for applications that wish to speak of such things. The example here shows Tex-Edit Plus returning a text style record. (See "Records" in Chapter 20.) This is a record consisting of two lists, the on styles (those that are applied to a piece of text) and the off styles (those that are not applied to a piece of text). The items of each list are text styles. The piece of text we're asking about here is underlined.

Example

 tell application "Tex-Edit Plus"     set tsr to style of word 4 of document 1     on styles of tsr -- {underline} end tell 




AppleScript. The Definitive Guide
AppleScript: The Definitive Guide, 2nd Edition
ISBN: 0596102119
EAN: 2147483647
Year: 2006
Pages: 267
Authors: Matt Neuburg

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net