When Is A String Not A String
When Is A String Not A String
- Subject: When Is A String Not A String
- From: Luther Fuller <email@hidden>
- Date: Mon, 11 Aug 2008 11:29:50 -0500
I have a variable, x, which is either a string or an alias to a
folder. When x encounters this code ...
if (class of x) is string then
A
else -- x is an alias
B
end if
... it works perfectly in Leopard. But, I've just discovered, not in
Tiger 10.4.11.
In Tiger, if x = "a text message" (which is certainly a string), then
block A is skipped and block B runs with an error message containing
"a text message". (Which is certainly impossible.)
Who knows what's happening here?
_______________________________________________
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