Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppleScript keystroke sometimes capitalizing letters?

Tags:

applescript

I'm actually troubleshooting and Alfred workflow I've been using for a while. The author developed it in 2014 and it's pretty simple, so I'm not sure I'll get much help from their forums. Basically, I have this:

set chars to count (get the clipboard)
if chars > 500 then
    do shell script "afplay /System/Library/Sounds/Funk.aiff"
else
    tell application "System Events"
        delay 1
        keystroke (get the clipboard)
    end tell
end if

The idea is that it'll type out anything on my clipboard, which is helpful when logging into servers and other things that have secure fields. Has something changed in 10.12.2 or 10.12 in general, recently? This was working just fine a couple of weeks ago, but now it's randomly capitalizing letters in the output.

I've tried removing everything but the following, along with changing the delay to no avail:

tell application "System Events"
    delay 1
    keystroke (get the clipboard)
end tell

I appreciate any help. If this isn't the right place for this, I'll be glad to move it but I don't believe it to be system related. I've tested this in Automator and the result is the same.

Thanks!

like image 612
Jack Musick Avatar asked Mar 28 '26 00:03

Jack Musick


1 Answers

Apparently this is a known issue with 10.12.2 since the beta.

like image 149
Jack Musick Avatar answered Apr 02 '26 22:04

Jack Musick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!