Thanks for the quick responses everyone. I should probably explain that I'm trying to set initial values for some application preferences, which the user can then change if necessary, so this is not a show stopper, just something that would be nice to do.
Andre - I'll check out the files you mentioned, maybe that will reveal the problem. I do know that if I "answer $LANG" after the first line of the script, I get en_US_POSIX but if I look at $LANG in Terminal, it is set to en_US.UTF-8, so clearly something is different. Warren - I think you're probably right. I do have an Applescript that plows through the com.apple.systempreferences.plist file to look for user settings from the System Preferences and overwrite whatever I get from the shell scrip. What really confuses shows up more in some of the other LC_xxx commands which in LC often come back with 127 listed as the values for various settings (I see Mark got that too). I don't understand what the significance of 127 is. Pete Molly's Revenge <http://www.mollysrevenge.com> On Thu, Oct 20, 2011 at 1:23 PM, Warren Samples <[email protected]>wrote: > On 10/20/2011 03:12 PM, Andre Garzia wrote: > >> Pete, >> >> The terminal and the shell command are different beasts. On your mac, you >> can check some hidden files: >> >> .profile >> .bash_profile >> .bashrc >> >> For example, my .profile changes my locale $LANG var. >> >> I think that .profile always load but .bash_profile and .bashrc only loads >> then you launch a terminal, but I am guessing. Its been a while since I >> last >> played this kind of game. >> >> Anyway, the shell() executes stuff in "Mac OS X" graphical land, the >> terminal is different. For example, IIRC applescript is not available when >> the old engine was running on the terminal but was available if you >> shell(). >> Its the little things... >> > > > To expand (in a speculative manner!) on Andre's response, it seems probable > that you are running into the difference between the System defaults and > your User defaults. This is a little bit of a quagmire, but something that > has been discussed here more than once in the past. > > Good Luck! > > Warren > > > > ______________________________**_________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode> > > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
