且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在取景器的AppleScript移动文件

更新时间:2023-12-06 08:26:04

尝试:

tell application "Finder"
    duplicate POSIX file "/Users/xx/Documents/img.jpg" to POSIX file "/Users/xx/Documents/State" with replacing
end tell

或者

tell application "Finder"
    move POSIX file "/Users/xx/Documents/img.jpg" to POSIX file "/Users/xx/Documents/State" with replacing
end tell