我试图运行这个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
但每次出现错误消息时都说:
无效的密钥表单。
答案 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