开发者

What is the AppleScript Folder Action for moving/deleting a file?

I have a script that is working fine when I add a file to the folder using:

on adding folder items to this_f开发者_如何转开发older after receiving added_items

What is the equivalent when a file is either moved or deleted from that folder?

Thanks!


This should work:

=== edited to answer to comments:

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜