In my job I get documents to review and provide feedback on every day. From contract drafts, event plans, strategy outlines to the typical PowerPoint presentation they either hit my email inbox or get published on the collaboration platform we use. Like most other users I am used to either download them or directly open them from within the source email or website. In the one case they ended up sitting around in my Downloads folder and in the other remain with the email or website (since no one really looks into temporary download folders).
The issue only is that when I initially open or download these documents I do not really review them. I glance over them at best. I could certainly create a task to review them in OmniFocus, I could even attach the file in the notes of that task or even use the OmniFocus clipping service to get the file captured in the inbox with just one keyboard shortcut.
Or I could use Hazel to automatically do all of this for me. Just like David Sparks gets a task created once he scanned a bill, I get one created for each document I get for reviewing purposes with only a bit of AppleScript and a small portion of Hazel fairy dust.
Choosing A Trigger In Hazel
Hazel can react on various events occurring in your Mac’s file system. Once a certain condition within a certain scope, e.g. folder or folder tree, is true, Hazel executes a set of actions that you define. For my Review workflow I simply asked Hazel to watch my ‘Review’ folder and react to every new file added to that folder. If you do not want to save all your documents for review into one single folder you can use other triggers such as a Finder label or a specific word in the file’s comment field. However, since most other options would require an additional, manual step such as setting the label or adding the comment, I prefer watching one single folder into which I save all documents from downloads or email attachments for review.
Download this Hazel rule
Grab It And Add It
Once a new file is added to the folder Hazel runs the below AppleScript which adds a ‘Review’ task to my OmniFocus inbox with a link back to the file. If you want the document embedded in the task notes simply change the parameter embedded to true. This can substantially increase the size of your OmniFocus database and impact sync speeds, but you have the document synced to all devices in return.
tell application "Finder" to set file_name to (name of theFile)
tell application "OmniFocus"
set task_title to "Review " & file_name
tell default document
set newTask to make new inbox task with properties {name:task_title}
tell the note of newTask
make new file attachment with properties {file name:theFile, embedded:false}
end tell
end tell
end tell
While Hazel can remember whether it already ‘processed’ a file I still like to add a comment to each file which I then also use as a condition to exclude it from processing in the future.
Keep Your ‘Review’ Folder Clean
Saving, task creation and reviewing is now being taken care of: Just save your file in the ‘Review’ folder and things will happen. The part that the workflow does not look after is keeping the folder nice and clean. You can have another Hazel rule that moves files to a different folder after a set period of time or simply deletes them.
However, in this case I prefer a more manual approach for a change: As part of my Weekly Review I have a task to clean out my ‘Review’ folder from documents already reviewed. I prefer this approach as it leaves me with the choice to file the documents for future reference , as support material for ongoing projects or indeed can them.

