Set OmniFocus As Your Homepage

I’ve found that OmniFocus is by far my favorite task list manager, but one thing I always wished it could do was show me my lists in my browser (which I spend a lot more time in than in OmniFocus).  I’ve never been much of an AppleScript aficionado, but today I sat down and figured out a way to combine Firefox, OmniScript, the crontab and AppleScript in a way that gets me a nice list of my tasks each time I open a new tab.  Here’s how I did it:

First, create a new AppleScript:

tell application "OmniFocus"
set homepageFile to ((path to documents folder as rich text) & "OmniFocus.html")
tell default document
save in homepageFile as "HTML"
end tell
end tell

That will export your OmniFocus document as HTML to ~/Documents/OmniFocus.html (you can tweak the homepageFile variable to change the location).

Next, we want to edit the crontab.  I used CronniX (a decent cron GUI for OS X) to export my OmniFocus document every hour:

0 * * * * /usr/bin/osascript "/Users/yourname/Documents/OmniFocus Exporter.scpt"

Google “crontab tutorial” to learn how to tweak when it runs.

Finally, I set my home page in Firefox to ~/Documents/OmniFocus.html and installed the extension New Tab Homepage so that each time a open a new tab, my homepage loads.  Now whenever I open a new tab I’m presented a nice list of all my tasks.

This entry was posted in Getting Things Done, OS X. Bookmark the permalink.
  • jamie

    Very cool. I have a question for you Chris

    How would one go about amending the script to have it rename the file index.html and have it upload to a folder on a server space – so that you could surf to example.com/omnifocus and see a list of tasks? Perfect for if you’re out of the office and need a quick glance at something.