Re: Detecting if text is styled
Re: Detecting if text is styled
- Subject: Re: Detecting if text is styled
- From: ehsan saffari <email@hidden>
- Date: Tue, 26 Nov 2002 16:54:34 -0600
On 26/11/2002 13:03, "Arthur J. Knapp" <email@hidden> wrote:
I asked
>
> In vanilla AS, is there any method avaialble to detect if a piece of text
>
> is styled?
>
>
on ClassCode(v)
>
(*
>
* HACK !!!
>
*)
>
return ({{p:v}} as string)'s text 39 thru 42
>
end ClassCode
>
>
on IsStyledText(v)
>
return ClassCode(v) = "STXT"
>
end IsStyledText
>
>
IsStyledText(the clipboard) --> true/false
Thanks Arthur....
Now the problem is, what is really styled text? I copy a piece of text
out of Note pad (which has no clue about styled text), I check the
clipboard, it says its text (NOT styled text) but the hack above reports
it's styled text....or is it? and if I copy some formatted AS code out of
SD, clipboard says it's styled and so does the hack..
any ideas?
cheers
ehsan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.