My quest was to launch multiple instances of Mac OSX 10.6 TextEdit using Terminal where each instance has it's User Interface (UI) in a different language. The TextEdit UI language being independent from the Finder UI language. TextEdit is currently available in 18 UI languages ie 18 localizations:-
- Chinese Simplified [zh-Hans]
- Chinese Traditional [zh-Hant]
- Danish [da]
- Dutch [nl]
- English [en]
- Finnish [fi]
- French [fr]
- German [de]
- Italian [it]
- Japanese [ja]
- Korean [ko]
- Norwegian [nb]
- Polish [pl]
- Portugese [pt]
- Portugese Portugal [pt-PT]
- Russian [ru]
- Spanish [es]
- Swedish [sv]
The text in the brackets [ ] is the language tag for the language. The language tag rather than the full language name is used in the following terminal session commands. First the command to launch TextEdit in Japanese. I give two command line methods:-
- /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages '(ja)'
- open -a TextEdit --args -AppleLanguages '(ja)'
Now to launch four simultaneous instances of TextEdit. The instances are Korean, Japanese, Chinese Simplified and English.
- /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages '(ko)'&
- /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages '(ja)'&
- /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages '(zh-Hans)'&
- /Applications/TextEdit.app/Contents/MacOS/TextEdit -AppleLanguages '(en)'&
Alternatively use the open command with the -n option. The -n option will result in a new instance of an App even if one is already running.
- open -n -a TextEdit --args -AppleLanguages '(ko)'
- open -n -a TextEdit --args -AppleLanguages '(ja)'
- open -n -a TextEdit --args -AppleLanguages '(zh-Hans)'
- open -n -a TextEdit --args -AppleLanguages '(en)'
I assume that these methods can be used with all Apple Apps but I have not yet investigated.
Thank you to Douglas Davidson for the lead on the -AppleLanguages command line argument.