Applescript备份脚本

Applescript备份脚本,applescript,Applescript,因此,我的目标是制作一个脚本,在桌面上的“1NF1N1T3备份”中创建一个显示当前日期的文件夹,然后将桌面上的文件夹“1NF1N1T3服务器”复制到文件夹“1NF1N1T3备份”中。目前,它复制了“1NF1N1T3服务器”文件夹,并创建了带日期的文件夹。我希望“1NF1N1T3服务器”位于已注明日期的文件夹中,但我不知道下一步该怎么做。请帮助并感谢那些提供帮助的人 tell application "Finder" set p to (path to desktop as

因此,我的目标是制作一个脚本,在桌面上的“1NF1N1T3备份”中创建一个显示当前日期的文件夹,然后将桌面上的文件夹“1NF1N1T3服务器”复制到文件夹“1NF1N1T3备份”中。目前,它复制了“1NF1N1T3服务器”文件夹,并创建了带日期的文件夹。我希望“1NF1N1T3服务器”位于已注明日期的文件夹中,但我不知道下一步该怎么做。请帮助并感谢那些提供帮助的人

    tell application "Finder"
        set p to (path to desktop as text) & "1NF1N1T3 Backups"
        set d to date string of (current date)
        make new folder at p with properties {name:d}
        duplicate POSIX file "/Users/Jeremy/Desktop/1NF1N1T3 Server" to p
    end tell
尝试:

set p to (path to desktop as text) & "1NF1N1T3 Backups"
set d to date string of (current date)

tell application "Finder"
    set newFolder to make new folder at p with properties {name:d}
    duplicate (POSIX file "/Users/Jeremy/Desktop/1NF1N1T3 Server" as text) to newFolder
end tell