Accessing superscript with AppleScript

John Tiftickjian jtift at doctortee.com
Wed Sep 17 18:36:01 PDT 2003


Hello OO group,

I am experimenting with AppleScript to customize exporting an outline 
as HTML so as to use predefined CSS styles. I have had some success 
so far, but have hit a snag when trying to get the 
superscript/subscript status of an attribute run.

The AppleScript dictionary of OO shows a suite called "Extended Text 
Suite," under which falls the "attribute run" class. This class lists 
properties such as: font, alignment, underlined, baseline offset, 
color, etc. If I write a script that tries to get the font, color, or 
size of an attribute run, the correct information is returned. 
However if I try to get baseline offset, or superscript, an error is 
returned.

Does this mean that those particular properties of attribute runs are 
not yet supported, or am I just doing something wrong? If not yet 
implemented, is this planned in the future?

A somewhat related question: why is it that OmniOutliner appears 
twice in the list of applications that is accessed through the 
"dictionary" command in ScriptEditor? (This is not peculiar to OO, 
several other applications appear more than once also in spite of the 
fact that there is only one copy of the application installed.)

Thanks for any help,

John.
-- 
---------------------------------------------------------    // /\
John Tiftickjian, Ph.D.    Chair and Professor of Biology   // //\\
                                                            // //  \\
Department of Biological Sciences          662-846-4240   // // \\ \\
Delta State University               FAX: 662-846-4798   // //   \\ \\
Cleveland, Mississippi 38733     jtift at deltastate.edu    =======  \\ \\
---------------------------------------------------       ==========




More information about the OmniOutliner-Users mailing list