Re: Detecting if text is styled
Re: Detecting if text is styled
- Subject: Re: Detecting if text is styled
- From: "Arthur J. Knapp" <email@hidden>
- Date: Tue, 26 Nov 2002 13:36:22 -0500
>
Date: Tue, 26 Nov 2002 09:30:02 -0600
>
From: ehsan saffari <email@hidden>
>
Subject: Detecting if text is styled
>
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
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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.