iPhone 上的 Apple 脚本
我有一个 Apple 脚本,它在 Mac 上运行良好。我想将它用于 iPhone 应用程序。如何集成到 iPhone 应用程序?
I have one Apple script and its working fine on Mac. I want to use it into iPhone application. How can I integrate to iPhone application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
另外AppleScript使用Carbon和Carbon AppleEvents,所以试图在iPhone上得到这个几乎是不可能的,你几乎必须编写自己的AppleScript解释器,我也不认为在iPhone上使用AppleScripts有什么意义,因为主要目的是AppleScript是通过发送AppleEvents来控制其他应用程序的。您是否考虑过使用 JavaScript?我正在寻找一个网络抓取应用程序,使用 Javascript 意味着我可以快速更新网络抓取代码,而无需将我的应用程序重新提交给 Apple。
Also AppleScript uses Carbon and Carbon AppleEvents, so trying to get this on a iPhone is pretty much impossible you would pretty much have to write your own AppleScript interpreter, I also would not see much point in having AppleScripts on an iPhone since the main purpose of AppleScript is to control other applications by sending the AppleEvents. Have you thought about using JavaScripts I was looking at that for a web scraping application, using Javascript meant I could update the web scraping code quickly without having to resubmit my app to Apple.
不幸的是,你不能轻易做到这一点。此摘录自最新的 iOS 开发者计划许可协议:
因此,理论上这是允许的,但由于 iOS SDK 不支持 AppleScript,您还应该将 AppleScript 解释器与您的应用程序一起打包。
Unfortunately, you can't easily do that. This excerpt is from the latest iOS Developer Program License Agreement:
So, in theory it is allowed, nut since AppleScript is not supported by iOS SDK, you should also package an AppleScript interpreter with your app.