Applescript:如何打开当前查找器窗口的完整路径?
我有这个脚本,它工作正常,但当我在网络上打开查找窗口时,它没有给我完整的链接,应该以“卷”开头,如何让它检测到它Applescript:如何打开当前查找器窗口的完整路径?,applescript,Applescript,我有这个脚本,它工作正常,但当我在网络上打开查找窗口时,它没有给我完整的链接,应该以“卷”开头,如何让它检测到它 tell application "Finder" if exists window 1 then set currentDir to POSIX path of ((target of front Finder window) as text) else
tell application "Finder"
if exists window 1 then
set currentDir to POSIX path of ((target of front Finder window) as text)
else
set currentDir to POSIX path of (path to desktop folder)
end if
end tell
log currentDir
tell application "Finder"
if exists Finder window 1 then
set currentDir to target of Finder window 1 as alias
else
set currentDir to desktop as alias
end if
end tell
log POSIX path of currentDir