Applescript Universal application

烂漫一生 提交于 2019-12-23 01:57:18

问题


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

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.

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.

Thx


回答1:


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.



来源:https://stackoverflow.com/questions/10540995/applescript-universal-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!