所以我的目标是创建一个脚本,使一个文件夹显示当前日期" 1NF1N1T3备份"在我的桌面上,然后复制文件夹" 1NF1N1T3 Server"在我的桌面上的文件夹" 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
答案 0 :(得分:1)
尝试:
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