• 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: Apple Mail, Why is "?" not equal to "?"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Mail, Why is "?" not equal to "?"


  • Subject: Re: Apple Mail, Why is "?" not equal to "?"
  • From: Joe <email@hidden>
  • Date: Fri, 29 Jun 2007 11:02:47 -0700


Answering my own question…

The incantation should have been:

tell application "Mail"
set x to content of message 1 of mailbox "Testing" as text --the magic "as text" words since "content" returns Unicode text and my test failed for that reason
end tell


set y to character 1 of x --text 1 of x fails when class of x is string (?, I don't understand why?)

y is "?"
--> true

Joe
email@hidden

------------------------------------------------------------------------ ------------------------------------------------
Few things are harder to put up with than the annoyance of a good example.
Mark Twain
_______________________________________________
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: Apple Mail, Why is "?" not equal to "?"
      • From: Nigel Redmon <email@hidden>
References: 
 >Apple Mail, Why is "?" not equal to "?" (From: Joe <email@hidden>)

  • Prev by Date: Apple Mail, Why is "?" not equal to "?"
  • Next by Date: Re: Apple Mail, Why is "?" not equal to "?"
  • Previous by thread: Apple Mail, Why is "?" not equal to "?"
  • Next by thread: Re: Apple Mail, Why is "?" not equal to "?"
  • Index(es):
    • Date
    • Thread