Re: styled text
Re: styled text
- Subject: Re: styled text
- From: Arthur J Knapp <email@hidden>
- Date: Mon, 21 Jan 2002 12:19:33 -0500
>
Date: Sun, 20 Jan 2002 21:47:43 -0600
>
From: ehsan saffari <email@hidden>
>
Subject: Re: styled text
>
> On Saturday, January 19, 2002, at 11:12 PM, ehsan saffari wrote:
>
>> but these styles seem to be inaccessible (why?):
>
>> superscript/subscript/strikethrough/small caps/all caps/all
>
>> lowercase/hidden
>
On 20/01/2002 14:42, Christopher Nebel, email@hidden wrote:
>
> Because the "styled text" type can't represent them. They were defined
>
> for the benefit of word processors.
>
Thanks, that is clear as mud. Are the unrepresentable styles just place
>
holders? Can an osax make them possible?
>
If underline is possible, strikethrough shouldn't be that far behind...
Well, what do you mean by "possible"?
When you read that AppleScript "defined" certain styles, that means
that it created a standard way for an application to represent these
styles as a part of it's object model, (IF it chooses to do so).
So, for instance, QuarkXPress allows one to get and set a particular
piece of text to the face-style "strikethrough", because Quark defines
a style called "strikethrough", and it makes this style accessable to
it's scripting model. This means that, inside a Quark "tell" statement,
the defined face-style "strikethrough" has a meaning given to it by Quark.
The (styled text) data type is a Mac system-standard way to represent
styled text. It is not related to any application's object model, and
can only represent styles that it knows about. It is useful as a way
for a user to copy and paste text between two applications, while
maintaining a modicum of style information.
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://www.LateNightSW.com/>
on error number -128
end try
}