Skip to content

CLI not working in automator or applescript #524

Answered by samschott
theboyler asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I've seen this before. We use click for most of the command line interface and click requires a UTF-8 encoding of the environment. This is typically set by environment variables such as LC_CTYPE=UTF-8 in your command line by default on macOS.

It looks like the environment in which automator runs has a ASCII encoding configured. There probably is a way to change that but I'm not particularly familiar with automator or AppleScript.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by theboyler
Comment options

You must be logged in to vote
1 reply
@samschott
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants