什么是用于移动/删除文件的AppleScript文件夹操作?

时间:2011-02-04 22:54:12

标签: macos applescript

我使用以下命令将文件添加到文件夹时,脚本运行正常:

on adding folder items to this_folder after receiving added_items

从该文件夹中移动或删除文件时的等效项是什么?

谢谢!

1 个答案:

答案 0 :(得分:2)

这应该有效:

===编辑回答评论:

on removing folder items from this_folder after losing lost_items
repeat with i from 1 to number of items in lost_items
    set nameOfLostFile to name of (info for item i of lost_items)
end repeat
end removing folder items from