• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text, rich text and unicode text in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text, rich text and unicode text in Lion


  • Subject: Re: Text, rich text and unicode text in Lion
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 09 Aug 2011 18:34:30 -0500

On Aug 9, 2011, at 6:10 PM, Shane Stanley wrote:

> On Aug 10, 2011, at 9:00 AM, Michelle Steiner wrote:
>
>> 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.

Ah Ha! I opened the script in Lion and searched for "as unicode text" and "as text".
Every occurrence of  "as unicode text" is inside a 'tell application "Mail"' block.
Every occurrence of  "as text" is NOT inside a 'tell application "Mail"' block.

But, aren't 'text' and 'unicode text' equivalent?
Or should I replace 'unicode text' with 'string'? Or does it matter?

 _______________________________________________
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

  • Follow-Ups:
    • Re: Text, rich text and unicode text in Lion
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Re: Applescript and Lion (From: Emile Schwarz <email@hidden>)
 >Text, rich text and unicode text in Lion (From: Luther Fuller <email@hidden>)
 >Re: Text, rich text and unicode text in Lion (From: Michelle Steiner <email@hidden>)
 >Re: Text, rich text and unicode text in Lion (From: Michelle Steiner <email@hidden>)
 >Re: Text, rich text and unicode text in Lion (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Text, rich text and unicode text in Lion
  • Next by Date: Re: Text, rich text and unicode text in Lion
  • Previous by thread: Re: Text, rich text and unicode text in Lion
  • Next by thread: Re: Text, rich text and unicode text in Lion
  • Index(es):
    • Date
    • Thread