闪退
由于最新的MacOS已经替换Python2 到 Python3了 导致AccessClient内部脚本执行无法找到python命令
解决方案:
- 在AccessClient点击鼠标右键,选中显示包内容
- 进入到Contents/Resources/Scripts目录下
- 使用脚本编辑器打开main.scpt,将其中里的python改为python3,
- 保存后重新打开软件
改之前
on open location this_url
set exec_path to POSIX path of (path to me) & "Contents/Resources/Scripts/main.py"
set resources_dir to POSIX path of (path to me) & "Contents/Resources"
set logfile to (system attribute "TMPDIR") & "AccessClient.out"
do shell script "python '" & exec_path & "' '" & this_url & "' '" & resources_dir & "' > " & logfile & " 2>&1 &"
end open location
改之后
on open location this_url
set exec_path to POSIX path of (path to me) & "Contents/Resources/Scripts/main.py"
set resources_dir to POSIX path of (path to me) & "Contents/Resources"
set logfile to (system attribute "TMPDIR") & "AccessClient.out"
do shell script "python3 '" & exec_path & "' '" & this_url & "' '" & resources_dir & "' > " & logfile & " 2>&1 &"
end open location
标签:MacOS,set,AccessClient,配置,Contents,path,open,Resources
From: https://www.cnblogs.com/eternityz/p/17039613.html