Re: OS X: Styled text to plain text???
Re: OS X: Styled text to plain text???
- Subject: Re: OS X: Styled text to plain text???
- From: Arthur J Knapp <email@hidden>
- Date: Mon, 06 May 2002 13:35:58 -0400
>
Date: Mon, 06 May 2002 09:32:08 -0400
>
Subject: OS X: Styled text to plain text???
>
From: Jason Bourque <email@hidden>
>
I am trying to compare two strings but one is styled and one is not so they
>
are never equal.
>
Can someone explain to me how to work with styled text?
set myPlainText = "abc"
set myStyledText to the clipboard --> assuming it has styled text
set styled_record to myStyledText as record
--
--> {<<class ktxt>>:"abc", <<class ksty>>:<<data styl...>>}
set plain_text to <<class ktxt>> of styled_record
--
--> "abc"
if ( myPlainText = plain_text ) then ...
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
(*) Happy
( ) Sad
( ) Ambivalent
( ) Ubiquitous
}
_______________________________________________
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.