开发者

Right Click with AppleScript

How do I preform a right click with appl开发者_StackOverflow社区escript?


You can use my MouseTools unix executable found here. At the bottom of the web page are examples and applescripts that show how to use it.


You have to use a third party macro program like Keyboard Maestro or Quickeys. Quickeys would be my suggestion as it's very, very nice for automation and does a lot more including text substitution. It's also very scriptable itself via Applescript. So you can setup a macro to control a non-scriptable application and then call that via Applescript.

With Quickeys you could do a right click by setting up a macro to do it and then call it via.

tell application "QuicKeys"
   play shortcut named "myclick"
end tell

There used to be a few OSAX for Applescript that were free that did this but they are no longer supported and I think were never ported to Intel.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜