1

osascript is behaving weird after upgrading to 10.12.1. Prior to this version, the command works as below:

In 10.12, the output is in whatever case the input is:

deppfx : ~ $ osascript -e "tell application \"System Events\" to keystroke \"Hello\""
deppfx : ~ $ Hello

In 10.12.1, the output is forced to uppercase:

deppfx : ~ $ osascript -e "tell application \"System Events\" to keystroke \"Hello\""
deppfx : ~ $ HELLO

Does anyone know what's going on here?

1 Answer 1

1

Caps-lock is probably on. This inputs the text as if you typed it yourself, so it's affected by holding shift down, or having caps-lock on.

2
  • A direct caps-lock-on answer? No, it's not caps-lock. Thanks for trying to help though.
    – deppfx
    Commented Dec 6, 2016 at 6:57
  • Well, it doesn't do that for me, except for when caps-lock is on, or I'm holding shift down. Commented Dec 6, 2016 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .