Applescript 无法启动应用程序
我编写了一个简单的 applescript 在启动期间启动一个名为“SelfControl”的程序,当我使用 applescript 编辑器运行该脚本时,它会启动“SelfControl”应用程序,但是当我将脚本导出为应用程序时,该应用程序将不会启动。我更改代码以启动其他应用程序并且工作正常。
我还将 SelfControl 应用程序的权限更改为完全读写访问权限。还是没有运气。知道是什么原因造成的吗?
I wrote a simple applescript to start to a program called "SelfControl" during startup, while I run the script with applescript editor, it launch the "SelfControl" app, but while I export the script as application, the app won't launch. I change the code to launch other app and is working fine.
I also change permission of SelfControl app to full read write access. Still no luck. Any idea what cause this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后我找到了导致问题的原因,我将我的 applescript 代码命名为“SelfControl”,并在我的代码中告诉“SelfControl”激活,这可能是它尝试自行启动而不是我想要启动的应用程序。
Finally I found out what cause the problem, I named my applescript code as "SelfControl" and in my code I tell "SelfControl" to activate, which perhaps it try to launch itself than the app I want to launch.