OS X Applescript 检查文件在文件夹中的时间

OS X Applescript check how long file has been in folder

我不知道如何完成这个简单的任务。

我正在尝试将操作脚本放在我的所有文件夹中以帮助对我的文档进行分类。我还试图避免下载文件,而不得不尝试捕获它。

我的解决方案是一个脚本,该脚本会在文件在文件夹中的时间超过特定时间段时触发。

这就是我的。

-- I was thinking of putting something here to delay it, but I'm not sure if that would be the best solution --

on adding folder items to master_folder after receiving new_files

    tell application "Finder"
        move new_files to dest
    end tell

end adding folder items to

如果我能找到一个解决方案,我会post,但在那之前谢谢!

备选方案

文件夹操作并不适合这项工作。正如 Vadian 提到的,他们不控制延迟。所以我的问题的答案是目前还不可能。

可以创建应用程序或除文件夹操作之外的其他内容,并监视所述文件夹的内容。我一直在使用 Hazel,但我确信还有其他解决方案。