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?