Open a URL in an OmniFocus Task's Note Quickly

Published on

I often save URLs from my iPhone that I want to open up later on my iMac in the note of a task in OmniFocus. I wind up having to move my mouse when I’m working my way through my tasks to open these links up and I thought I’d automate it a bit. You can map the script below to a hotkey (I use ⌘ ⇧ “) and quickly open up the url in a task’s note.

tell application "OmniFocus"
  tell front window
    set my_sel to selected trees of content
    set my_selection to value of item 1 of my_sel
    set a_note to get note of my_selection
    do shell script "open " & a_note
    set completed of my_selection to true
  end tell
end tell