我编写了一个非常基本的AppleScript应用程序,它应该在执行时将我们的用户连接到网络共享。我希望能够将它放在每个人的Applications文件夹中,以便任何用户登录都可以访问它。
You do not have permission to open the application "Network Volumes Connection".
将应用程序从服务器上的位置移动到“应用程序”文件夹的用户帐户可以执行此操作,但其他用户无法执行此操作。相反,他们得到一个错误说:
"The application "Network Volumes Connections" can't be opened."
我需要为应用分配哪些权限才能允许每个登录该用户的用户执行该权限?
编辑
授予阅读权限后写入访问错误更改为
的每个人Finder: spawn_via_launchd() failed, errno=111 label=com.apple.ScriptEditor.id.Network-Volumes-Connections.95172 path=/Applications/Network Volumes Connections.app/Contents/MacOS/applet flags=1 : LaunchApplicationClient.cp #1136 LaunchApplicationViaLaunchDJobLabel() q=com.apple.root.default.qos
并且没有人 - 甚至没有复制应用程序的人 - 现在能够执行它。
控制台中还显示与此相关的几条消息。
Finder: spawn_via_launchd() failed, errno=111 label=com.apple.ScriptEditor.id.Network-Volumes-Connections.95172 path=/Applications/Network Volumes Connections.app/Contents/MacOS/applet flags=1
com.apple.xpc.launchd: (com.apple.ScriptEditor.id.Network-Volumes-Connections.95172[951]) Could not find and/or execute program specified by service: 13: Permission denied: /Applications/Network Volumes Connections.app/Contents/MacOS/applet
com.apple.xpc.launchd: (com.apple.ScriptEditor.id.Network-Volumes-Connections.95172[951]) Service setup event to handle failure and will not launch until it fires.
WindowServer: _CGXSetWinowHasKeyAppearance: Operation on a window 0x12 requiring rights kCGSWindowRightOwner by caller Dashboard
WindowServer: _CGXSetWinowHasMainAppearance: Operation on a window 0x12 requiring rights kCGSWindowRightOwner by caller Dashboard
mdworker: code validation failed in the process of getting signing information: Error Domain=NSOSStatusErrorDomain Code=-67062 "The operation couldn't be completed. (OSStatus error -67062.)"
{{1}}