One line in less ! Thank you Ken ! :-) A little subsidiary question: with: put shell("defaults read NSGlobalDomain") what is in second line the big number like that: "XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX" = XXXXXXXXXX ? René
Le 10 nov. 2011 à 02:45, Ken Ray a écrit : > > 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: k...@sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode