开发者

Add an AppleScript commands for a scriptable application

开发者 https://www.devze.com 2023-04-12 11:34 出处:网络
Is there any way 开发者_如何学编程to add additional AppleScript command, other than those listed in its documentation, to a scriptable application in mac os?

Is there any way 开发者_如何学编程to add additional AppleScript command, other than those listed in its documentation, to a scriptable application in mac os? There are many events that application has but the script command for them is not listed. Is there any other way to send those commands to scriptable application? I found ScriptingBridge framework, but it seems framework is only an objc wrapper to apple script.


No, to do this you would have to change the code of the application and of course you can't do that. How an application responds to applescript commands is hard-coded into the program. However there is another approach. You could use gui scripting which means you can simulate mouse clicks and stuff on menu items, buttons etc. which may give you the ability to applescript what you need. Without more info about your specific task it's hard to give a solid suggestion though.

0

精彩评论

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

关注公众号