我正在尝试使用带有以下脚本的 Safari 打开本地 html:
on run
set myPath to (path to me) as text
set myFolderPath to POSIX file (do shell script "dirname " & POSIX path of quoted form of myPath) & ":" as string
set _thispath to myFolderPath & "data:Default.html"
tell application "Safari"
activate
open (_thispath)
end tell
结束运行
但是,该文件正试图以 file:/// (一个额外的斜杠)的附录打开任何人对此有任何解决方案吗?