MAC OS X Lion, shell and language
Ken Ray
kray at sonsothunder.com
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
:D
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list