
OmniFocus Hotspot
In our digital age, we tend to receive a large number of files via email. And we need to review these files or make changes to them. As an Omnifocus user, that means I need to create tasks out of these files.
I could invoke the quick entry dialog and drag the file into the notes field, but there are times when I have 10 files or more to do at once. That gets to be a lot of repetitive steps.
I started searching for a solution and came across this post by the guys at Asian Efficiency. It’s a simple process using Hazel to turn a folder into a hotspot. This folder will sense that files are in it and add those files to Omnifocus automatically.
The Set Up
Create a dedicated folder
You’ll need a folder to tie to the Hazel rule. I created one called “Omnifocus_Import.” Put it somewhere that’s easy to access. You might want to consider adding it as a favorite in Finder so it’s easy to access.
Add the new folder to Hazel
Add your new folder to the list of folders in Hazel. As an alternative, you can download my folder and rule setup from here.
Create a new Hazel rule
Here’s a view of what mine looks like:
I wanted the rule to automatically rename the file and move it to my Active folder, so I added those steps before the AppleScript, which is where the magic happens.
Add the AppleScript to the rule
Click on Edit script for the AppleScript and enter the following:
tell application "Finder" to set file_name to (name of theFile) | |
set theDate to current date | |
set theNote to "Imported on:" & (theDate as string) & " | |
" | |
set projectname to "Test Project" | |
set theTask to "Review File: " & file_name | |
tell application "OmniFocus" | |
set task_title to theTask | |
tell default document | |
set newTask to make new inbox task with properties {name:task_title} | |
set note of newTask to theNote | |
tell the note of newTask | |
make new file attachment with properties {file name:theFile, embedded:false} | |
end tell | |
end tell | |
end tell |
Using the system
It’s quite simple - just drag and drop the files to your new folder. You could also set up a keyboard command with Automator, Alfred, or Keyboard Maestro to make it even easier. Once you’ve added the files to your new hotspot, Hazel will rename the file, move it to the folder you selected, and add a task to Omnifocus. It’s simple and saves a fair amount of time when you have a lot of files to act on.