Strings as list items don't always compare as strings
Strings as list items don't always compare as strings
- Subject: Strings as list items don't always compare as strings
- From: Rob Lewis <email@hidden>
- Date: Fri, 22 Mar 2013 22:42:22 -0700
This:
property a_list: {"a"}
repeat with an_item in a_list
display dialog an_item --displays "a" (without quotes)
an_item is "a" --FALSE!
an_item as text is "a" --TRUE
end repeat
Why, oh why, does a list element that is, in fact, a string not compare as a string?
Funny thing is, under some conditions it does!
One of AppleScript's enduring mysteries.
Explanation greatly appreciated.
_______________________________________________
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