• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to detect application using which language by AS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How to detect application using which language by AS?
      • From: Emmanuel <email@hidden>
References: 
 >Re: How to detect application using which language by AS? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Best app for automation of charts and graphs
  • Previous by thread: Re: How to detect application using which language by AS?
  • Next by thread: Re: How to detect application using which language by AS?
  • Index(es):
    • Date
    • Thread