这个automator脚本就是一个例子。当我显示它看起来正确的路径时,但如果我然后尝试将文件复制到该路径,我会收到错误。
答案 0 :(得分:1)
这是修复所需的posix路径。
on run {input, parameters}
set theFilePath to POSIX path of (input as string) & "/Samples" as string
display dialog theFilePath
return theFilePath
end run