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

Path 在automator中,如何使用applescript将文件夹名称正确附加到选定路径?,path,applescript,append,automator,Path,Applescript,Append,Automator,这个自动机脚本就是一个例子。当我显示路径时,它看起来是正确的,但是如果我尝试将文件复制到该路径,我会得到一个错误 这是修复所需的posix路径 on run {input, parameters} set theFilePath to POSIX path of (input as string) & "/Samples" as string display dialog theFilePath return theFilePath end run 这是修复

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


这是修复所需的posix路径

on run {input, parameters}

    set theFilePath to POSIX path of (input as string) & "/Samples" as string
    display dialog theFilePath

    return theFilePath
end run

这是修复所需的posix路径

on run {input, parameters}

    set theFilePath to POSIX path of (input as string) & "/Samples" as string
    display dialog theFilePath

    return theFilePath
end run

我认为您不需要“设置变量的值”这两种操作。我看不到这一点(除非您稍后在工作流中使用未显示的变量)。我认为您不需要任何操作“设置变量的值”。我看不出来(除非您稍后在工作流中使用未显示的变量。)