Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: localized string returns input string



On Jun 10, 2006, at 12:58 AM, Daniel Pimley wrote:

On 9 Jun 2006, at 20:00, Chris Nebel wrote:

"localized string" is defined to return the input string if there is no localized version to be found, and that includes not being found because the table was missing. (The reason the last one works the way it does is that that's what you told it to do: it evaluated (1+1), came up with 2, and coerced that to a string.)

I wondered if that was the case, but that's not the documented behaviour. All the examples I've been able to find, in the ASS documentation or on the web, nest the command inside a 'try' statement to allow for an error.

The documentation agrees with you, but as far as I can tell, it's wrong -- it will return the original string if there is any failure. I'm looking into fixing the docs.



--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >Re: localized string returns input string (From: Daniel Pimley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.