Re: Puzzling Error Again
Re: Puzzling Error Again
- Subject: Re: Puzzling Error Again
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 4 May 2007 16:09:23 -0400
The "black diamond ?" character you're seeing is the "missing glyph"
symbol, indicating that the display mechanism/font/whatever you're
using doesn't have access to a more appropriate glyph for displaying
that character. If you're seeing a whole lot of them, that probably
means that it's either a writing system not represented in your system
(say, Korean Hangeul when you have no Korean fonts), or text that is
being interpreted with the wrong encoding.
On 5/4/07, Luther Fuller <email@hidden> wrote:
On 18 Feb, I asked about the error message "The cancel button cannot
be the same as the default button.". This error has been elusive, but
today it happened due to an odd e-mail message I received. And was
easily reproducable.
Taking advantage of this situation, I did some bug searching and
found the line of code that causes the error.
ignoring case
repeat with i from 1 to wordCount -- strip badwords
set newWord to (item i of wordList)
newWord is not in badWords -----------------!
if the result then
set newWordList to newWordList & {newWord}
end if
end repeat
end ignoring
The error is caused by the line marked with "!". Putting this single
line in a try block will fix the problem.
It is true that a 'choose folder' dialog appears way before the
problem line, but I have also seen the "cancel button" error when
there is no 'choose folder' dialog.
What may be important here is the message in Mail that I'm using to
test with. The variable 'wordList' in the snippet, above, is the
subject line of the message and 'badWords' is the list {"", "-",
"reply", "re", "Fwd", "Fw"}. But this particular message (and the
body of the message) consists mostly of the "BLACK DIAMOND ?"
character (probably spam). I have tried finding this character with
Character Palette, but no luck. Rather than using a try block, I
should perhaps test the subject string from which I obtained 'wordList'.
Does anyone have any idea what the "BLACK DIAMOND ?" character is?
And does anyone have any idea what the connection is between the
error message and the line of code that produces it? It makes no
sense to me!
_______________________________________________
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
--
Mark J. Reed <email@hidden>
_______________________________________________
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