Re: MAC OS X Lion, shell and language

2011-11-10 Thread René Micout
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: "----" = XX ? René Le 10 nov. 2011 à 02:45, Ken Ray a écrit : > > On Nov 8, 2011,

Re: MAC OS X Lion, shell and language

2011-11-09 Thread Ken Ray
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("def

Re: MAC OS X Lion, shell and language

2011-11-08 Thread René Micout
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 Le 8 nov. 2011 à 20:23, Warren Samples a écrit : > On 11/08/2011 01:21 PM, Warren Sampl

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Warren Samples
On 11/08/2011 01:21 PM, Warren Samples wrote: vxLangauage is a variable not a string. oops! Didn't spell your variable correctly. That would never work either :D Warren ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Pete
Yes, I think that's better. On my system that returns AppleLocale = "en_US_POSIX"; Pete Molly's Revenge On Tue, Nov 8, 2011 at 10:39 AM, René Micout wrote: > Thanks to Pete, Warren and Ben !! > > My new script after all their informations : >put "defaults

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Warren Samples
On 11/08/2011 01:17 PM, René Micout wrote: YES ! But why put "defaults read NSGlobalDomain" into vxLangage get shell (vxLangage) works ? I don't write put quote& "defaults read NSGlobalDomain"& quote into vxLangage ... Le 8 nov. 2011 à 19:39, René Micout a écrit : Thanks to Pete, Warren and

Re: MAC OS X Lion, shell and language

2011-11-08 Thread René Micout
YES ! But why put "defaults read NSGlobalDomain" into vxLangage get shell (vxLangage) works ? I don't write put quote & "defaults read NSGlobalDomain" & quote into vxLangage ... Le 8 nov. 2011 à 19:39, René Micout a écrit : > Thanks to Pete, Warren and Ben !! > > My new script after all their

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Warren Samples
On 11/08/2011 12:39 PM, René Micout wrote: get shell (defaults read NSGlobalDomain) don't work... !!? Don't forget to wrap your shell command with "" ! Warren ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subs

Re: MAC OS X Lion, shell and language

2011-11-08 Thread René Micout
Thanks to Pete, Warren and Ben !! My new script after all their informations : put "defaults read NSGlobalDomain" into vxLangage get shell (vxLangage) get line lineOffset("AppleLocale",it) of it put false into vxFrançais ; if "fr" is in it then put true into vxFrançais get shell (defa

Re: MAC OS X Lion, shell and language

2011-11-08 Thread René Micout
Thank you for this information... I have only one Macintosh in one only country... :-) Le 8 nov. 2011 à 19:01, René Micout a écrit : > Yes of course, it is better, > line 10 is the first language in the list (and I think it is the default > system (country) language. > AppleLocale is line 33..

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Warren Samples
On 11/08/2011 12:01 PM, René Micout wrote: Yes of course, it is better, line 10 is the first language in the list (and I think it is the default system (country) language. AppleLocale is line 33... Thank you Warren Le 8 nov. 2011 à 18:39, Warren Samples a écrit : I get a very different line

Re: MAC OS X Lion, shell and language

2011-11-08 Thread René Micout
Yes of course, it is better, line 10 is the first language in the list (and I think it is the default system (country) language. AppleLocale is line 33... Thank you Warren Le 8 nov. 2011 à 18:39, Warren Samples a écrit : > Not even close here. > > Don't you want the line that begins with "Appl

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Ben Rubinstein
I think if you're shipping an app based on this, it would be worth doing a little more parsing of the output. I think what you're probably looking for is the 'AppleLocale', but at least on my system this is reported after the 'AppleLanguages', which can be an array of one to many things. On

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Warren Samples
On 11/08/2011 11:03 AM, René Micout wrote: A little information : in Mac OS X Lion when you need to know what is the default (country) language of the system : put "defaults read NSGlobalDomain" into vxLangage get line 10 of shell (vxLangage) Before "Lion" it was line 9 of shell> now line

Re: MAC OS X Lion, shell and language

2011-11-08 Thread René Micout
Hello Pete, For me : line 9 > AppleLanguages = ( line 10 > fr, line 11 > en, line 12 > ja, Not for you ? If yes it is line 11 for you... Le 8 nov. 2011 à 18:23, Pete a écrit : > Hi Rene, > I'm on OS X 10.6.8 so I guess line 9 is what I would be looking for, but > that comes up as "fr," on my

Re: MAC OS X Lion, shell and language

2011-11-08 Thread Pete
Hi Rene, I'm on OS X 10.6.8 so I guess line 9 is what I would be looking for, but that comes up as "fr," on my computer and I'm in the USA. Pete Molly's Revenge On Tue, Nov 8, 2011 at 9:03 AM, René Micout wrote: > A little information : > in Mac OS X Lion when yo

MAC OS X Lion, shell and language

2011-11-08 Thread René Micout
A little information : in Mac OS X Lion when you need to know what is the default (country) language of the system : put "defaults read NSGlobalDomain" into vxLangage get line 10 of shell (vxLangage) Before "Lion" it was line 9 of shell > now line 10 Bon souvenir de Paris René ___