MAC OS X Lion, shell and language

Ken Ray kray at
Wed Nov 9 20:45:22 EST 2011

On Nov 8, 2011, at 1:28 PM, René Micout wrote:

> Thanks Warren,
> I simplify my script :
>   get shell ("defaults read NSGlobalDomain")
>   get line lineOffset("AppleLocale",it) of it
>   put false into vxFrançais ; if "fr" is in it then put true into vxFrançais

Even easier:

  put shell("defaults read NSGlobalDomain AppleLocale") into tLanguage


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at
Web Site:	

More information about the Use-livecode mailing list