Re: How to detect application using which language by AS?
Re: How to detect application using which language by AS?
- Subject: Re: How to detect application using which language by AS?
- From: bill <email@hidden>
- Date: Tue, 23 Jul 2002 13:05:38 +0800
On 23/07/2002 10:10, "Christopher Nebel" <email@hidden> wrote:
>
AppleScript Studio has a "localized string" command that lets you do the
>
lookup -- give it a reference string, and it will return the localized
>
one, assuming it exists at all.
Thanks Chris. So, will the Standard Additions add this command later?
Well, my original problem is dealing with double-byte character, e.g.
Traditional Chinese.
-- this list doesn't accept BIG-5 encoding, imagine the 2-byte character :)
Set monCoeur to "XXX" -- three 2-byte character
Script Editor's localized string is English
{system attribute "LANG", count of character of monCoeur}
-- {"en", 6}
Script Editor's localized string is zh-TW
{system attribute "LANG", count of character of monCoeur}
-- {"en", 3}
Script Editor's localized string is English
{system attribute "LANG", count of character of monCoeur}
-- {"zh_TW", 6}
Script Editor's localized string is zh-TW
{system attribute "LANG", count of character of monCoeur}
-- {"zh_TW", 3}
May we conclude that, dealing with double byte language, we have the correct
answer (should be 3 in the above example) while the Script Editor's
localized string is a double byte language ("zh-TW" is Traditional Chinese).
Is the problem related to unicode?
TIA
bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.