Hide Archive Items from Apple Mail’s VIP Inbox

During a recent MPU episode, Katie lamented the fact her VIP inbox included previously archived items. I knew there was a way around that but couldn’t puzzle it together during the show. Listener John wrote in with the solution.

  1. Select the VIP Inbox
  2. Select View/Sort By/Inbox Only

This isn’t exactly intuitive but it works.


Create OmniFocus Tasks with AppleScript

Sometimes efficiency becomes the enemy. Because I’m now a believer in automating document filing via Hazel and OCR, I sometimes get myself in trouble. A case in point is my life insurance bill. It arrives every quarter. I used to scan it and then name it in my Action folder with a TextExpander snippet, which resulted in it getting sent off to a nested folder somewhere. At the same time I’d record an OmniFocus quick entry to pay the bill. It was all second nature.
These days, I use a Hazel rule that looks at the contents of this invoice and names it and files it without me having to trouble to rename the file manually. Put simply, once I scan it, I never see it again unless I go looking for it. The problem is I keep forgetting to create the OmniFocus entry to pay the bill. That’s bad. (Especially if I get hit by a bus, which would only add one more problem to cascading badness.) We can’t have that.

I decided to create an AppleScript that automatically creates an OmniFocus task when this Hazel rule triggers. After a lot of head scratching, trial and error, and even some help from friends at the Omni Group and Ben Waldie (my AppleScript Sensei), I’ve cobbled one together. Here is a screenshot and the AppleScript code.


-- Lovingly crafted by David Sparks, The Omni Group, and Ben Waldie -- macsparky.com

set theDate to current date
set theTask to "Pay Life Insurance"
set theNote to "Lovingly Scanned by your Mac on " & (theDate as string)

tell application "OmniFocus"
tell front document
set theContext to first flattened context where its name = "Tech"
set theProject to first flattened project where its name = "Finance"
tell theProject to make new task with properties {name:theTask, note:theNote, context:theContext}
end tell
end tell

To test the rule, open AppleScript Editor and copy it in. You need to change the context and project names to something that is in your OmniFocus library. Once you trigger it, AppleScript will create a new task in the designated project with the designated context. The task also gets named and the Note field will include the text “Scanned on {today’s date}”. This just happens. Don’t believe me? Go look in your OmniFocus project afterward.

I use this script directly in Hazel. Specifically, when I’ve got a scan that requires future action, I add an AppleScript Hazel action at the end to run this script. After Hazel gets done naming and filing my document, it creates a handy OmniFocus task. Below is my life insurance Hazel rule screenshot to demonstrate.


I’ve modified several versions of the script to handle the variety of documents I scan and OCR that require an automatic OmniFocus action. Creating an OmniFocus task with a script is damn useful. You could use this in a lot of contexts outside of document filing. You’re welcome.

Below is a download link for the Hazel rule. Go nuts.

Download Sample Hazel Rule

RSS Sponsor: Checkmark


My thanks go to Checkmark for sponsoring the RSS Feed this week.

Checkmark is the fastest way to create location- or time-based reminders for iPhone.

In just a few seconds you can create new reminders — it only takes 3 taps! You can watch this little movie we made to see it in action.

In only 3 taps you can remind yourself to:

  • Do laundry when you get home
  • Pick up milk next time you’re at the grocery store
  • Call your wife when you leave work
  • Remember to pick up a cake at 3 pm tomorrow
  • Make a haircut appointment on Tuesday at 10 am

You can even add a timer to location-based reminders so the alert goes off when you’re ready to get it done — like 15 minutes after you arrive home.

Checkmark is available in the App Store for $2.99.

Sponsorship by The Syndicate

1Password Logins in OmniFocus

I always knew 1Password could export a login by dragging it to the desktop. However it took reader James W. to make the connection for me that I could put that link places other than the desktop, like in an OmniFocus note. To do so just click and drag.


This is really powerful. For instance, you could create a task with a list of sites you routinely change passwords on and set it out six months. When “the day” finally arrives, you can then get to all the logins from the OmniFocus note. It also works in OmniOutliner. Clever.


GeekDad on Paperless

In addition to providing a very kind review of Paperless, Jim Kelly at GeekDad interviewed me concerning Paperless and new workflows. The update is still on track. Everything is nearly ready to publish. I need to work out a few kinks and then it will be ready to roll. If you haven’t already, signing up for the Field Guide Newsletter is a really good idea.

Dropbox Two Factor Authentication

Two factor authentication requires a user to have two discreet pieces of secret data to access an account. For example a password and a secret code sent to your phone. Hacking a two-factor authentication requires the scoundrel to have both your password and your phone. It is increasingly important as we all embrace the cloud. Dropbox just announced its own support for two factor authentication and I’m already in. To get started, click the security setting for your account at the Dropbox web site. Strangely, I didn’t see an iOS application for two factor authentication. Instead, Dropbox sends me a text message with a six digit number.


Dropbox’s particular flavor of two-step verification kicks in whenever you log into the web site or attempt to add a new device. This really isn’t that intrusive and much more secure. If you use Dropbox, go do it now.