Sample Header Ad - 728x90

Change output language of internal commands like "lpstat"?

3 votes
1 answer
382 views
I've written some AppleScripts that run shell commands like lpstat -a and lpstat -l -p and parse the output with grep and awk. The scripts work correctly in English-language system, but the output is different in non-English systems. The only workaround I've found is impractical: I have four strings that are different in English systems and non-English systems, so I've created variables that the script work in English and French. But it's impossible to do this for every language. So is there a way to force the output of lpstat to be in English, no matter what the system language is?
Asked by emendelson (233 rep)
Aug 28, 2024, 12:33 AM
Last activity: Oct 9, 2024, 10:57 PM