开发者

Mac 10.4 osascript unicode issue

开发者 https://www.devze.com 2023-02-01 06:37 出处:网络
osascript -e \'tell application \"System Events\" to keystroke \"Æ\"\' This works on 10.5 and 10.6 but doesn\'t work on 10.4. From what I unders开发者_如何学Gotand osascript on Mac 10.4 defaults to

osascript -e 'tell application "System Events" to keystroke "Æ"'

This works on 10.5 and 10.6 but doesn't work on 10.4. From what I unders开发者_如何学Gotand osascript on Mac 10.4 defaults to MacRoman encoding. So on 10.4 this becomes garbled letters. Is there a work around for this issue?

Thanks.


It's been ages since I've had a 10.4 Mac at my desk, but what about something like tell application "System Events" to keystroke ("Æ" as Unicode text).

0

精彩评论

暂无评论...
验证码 换一张
取 消