Applescript 通用应用程序 [英] Applescript Universal application

查看:38
本文介绍了Applescript 通用应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让我创建一个 Applescript 作为只运行的应用程序,它可以在 10.5 及更高版本上运行?

Is there a way for me to create an Applescript as a run only application that would work on 10.5 and above?

我正在运行 Lion.每当我将脚本保存为仅运行的应用程序时,它就无法与 10.5 一起使用,并给我一个不适用于此架构"的错误.

I am running Lion. Whenever I save my script as a run only application it does not work with 10.5 and gives me a "does not work with this architecture" error.

奇怪的是,我保存了一次并在 10.5 机器上成功启动了它,但是当我去编辑它并重新保存它时,它不再起作用了.

The weird thing is that I saved it once and successfully launched it on the 10.5 machine but when I went to edit it and re-save it did not work anymore.

谢谢

推荐答案

你不能,而且 Apple 的文档也不清楚.基于大量反复试验,我的经验是,将 Applescript 保存为应用程序时,必须将其保存在目标环境中,就像在为 Xcode 编译时针对特定操作系统一样.过去,我不得不为 10.6 和 10.7 以及 PowerPC 和 Intel 制作单独的应用程序,其中包含完全相同的代码.

You can't and Apple's documentation isn't clear. My experience, based on a lot of trial and error, has been that when saving an Applescript as an application, that it has to be saved in the target environment, just as though you were targeting a specific OS when compiling for Xcode. In the past, I have had to make separate apps for 10.6 and 10.7 as well as PowerPC and Intel with the exact same code inside.

这篇关于Applescript 通用应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆