MacOS配置AccessClient

闪退

由于最新的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
posted @ 2023-01-10 11:18  未月廿三  阅读(1353)  评论(0编辑  收藏  举报