开发者

Mac 10.4 osascript unicode issue

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜