Re: Bad Character
Re: Bad Character
- Subject: Re: Bad Character
- From: Luther Fuller <email@hidden>
- Date: Fri, 28 Sep 2007 07:50:42 -0500
Update and clarification. This snippet of code should explain
something about what is happening ...
tell application "Mail"
...
set subText to (subject of msg)
end tell
--
set badChar to (character 57 of subText)
display dialog ((class of subText) as text) & space & (ASCII number
of badChar)
----> Unicode text 63
--
set subText to (subText as text)
--
set badChar to (character 57 of subText)
display dialog ((class of subText) as text) & space & (ASCII number
of badChar)
----> string 138
What this character ought to be isn't important.
What is important is that it behaves badly.
Why?
_______________________________________________
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