View Single Post
Copy the code, paste it into AppleScript Editor, then save it in ~/Library/Scripts/Applications/Omnifocus/

From there it can be added as a toolbar button, or from the Applescript menu.