get language of currently logged in user via applescript
问题 I want to get the system language of the currently logged in user. The line set lang to do shell script "defaults read NSGlobalDomain AppleLanguages" returns an string, which looks like ( en, de, ja, fr, es, it, pt, "pt-PT", nl, sv, nb, da, fi, ru, pl, "zh-Hans", "zh-Hant", ko, ar, cs, hu, tr ) returns the users languages, but how can I get the first one of this 'array'? Is there a possibility to parse this as an array an get its first value? 回答1: There's a more direct method. Applescript has