Re: Text, rich text and unicode text in Lion
Re: Text, rich text and unicode text in Lion
- Subject: Re: Text, rich text and unicode text in Lion
- From: Michelle Steiner <email@hidden>
- Date: Tue, 09 Aug 2011 16:27:41 -0700
Hey there, on Tue Aug 9 16:10:43 2011, Shane Stanley wrote the following interesting missive:
>> Typing this:
>>
>> tell application "Mail"
>> "abc" as text
>> end tell
>>
>> Compiles as this:
>>
>> tell application "Mail"
>> "abc" as rich text
>> end tell
>
>
> Right. If you look in Mail's dictionary, it defines "rich text" as «class ctxt», which is actually defined in the AppleScript language as simply "text". It's a bug in Mail.
But as I illustrated in my follow-up, there's an easy work around; if you want plain text, use "string".
-- Michelle
--
"There's some good in the world, Mr. Frodo, and it's worth fighting for."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden