运行时Applescript错误“无效的密钥表单”

时间:2015-04-27 09:37:08

标签: applescript

我试图运行这个AppleScript:

tell application "Finder"
    duplicate POSIX file contents "/Users/xx/Desktop/xxxx/" to POSIX file "/USB/" with replacing
    delete POSIX file contents "/Users/felix/Desktop/xxxx/"
    empty trash
end tell

但每次出现错误消息时都说:

  

无效的密钥表单。

1 个答案:

答案 0 :(得分:0)

您不需要使用contents。这应该有用。

tell application "Finder"
    set src to POSIX file "/Users/xx/Desktop/test.tmp"
    set dst to POSIX file "/USB/"
    duplicate src to dst with replacing
end tell
相关问题