在automator中,使用applescript,如何正确地将文件夹名称附加到选定路径?

时间:2013-07-17 03:19:32

标签: path applescript append automator

这个automator脚本就是一个例子。当我显示它看起来正确的路径时,但如果我然后尝试将文件复制到该路径,我会收到错误。

example automator script

1 个答案:

答案 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