iPhone 上的 Apple 脚本

发布于 2024-11-27 05:36:24 字数 71 浏览 0 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心头的小情儿 2024-12-04 05:36:24

另外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.

戴着白色围巾的女孩 2024-12-04 05:36:24

不幸的是,你不能轻易做到这一点。此摘录自最新的 iOS 开发者计划许可协议

3.3.2 ... 如果所有脚本、代码和解释器都打包在应用程序中且未下载,则解释的代码只能在应用程序中使用。上述情况的唯一例外是由 Apple 内置 WebKit 框架下载和运行的脚本和代码,前提是此类脚本和代码不会通过提供与预期和广告目的不一致的特性或功能来改变应用程序的主要目的提交到 App Store 的应用程序的名称。

因此,理论上这是允许的,但由于 iOS SDK 不支持 AppleScript,您还应该将 AppleScript 解释器与您的应用程序一起打包。

Unfortunately, you can't easily do that. This excerpt is from the latest iOS Developer Program License Agreement:

3.3.2 ... Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文