使用applescript打开文件夹(带空格的文件路径)

时间:2013-07-21 21:50:37

标签: operating-system applescript directory filepath

我认为我的问题是文件路径中的空格。但我无法让它发挥作用。

以下是我要打开的文件夹路径:/Users/username/Library/Speech/Speakable Items

1 个答案:

答案 0 :(得分:3)

假设你的路径是正确的,那就是:

tell application "Finder"
    open ("/Users/username/Library/Speech/Speakable Items" as POSIX file)
end tell