AppleScripting OmniFocus > Send Completed Task Report to Evernote
I've mentioned before that OmniFocus is my task manager of choice. Each morning, I pull up a list of scheduled tasks for the day, and focus on getting them done. In OmniFocus, I've set up Perspectives (saved window states) for both Due tasks and Completed tasks. What I really want, however, is something that will pull out recently completed tasks and summarize them in Evernote, my note management app of choice. This way, I can maintain a historical log of my progress, and pull out summaries of completed tasks to send to clients. Since this type of integration isn't built into OmniFocus or Evernote, I wrote an AppleScript to do it.
Creating the Script
NOTE: If you have any trouble following along, you can download my completed script here.
1. Launch AppleScript Editor (in /Applications/Utilities)
2. If your system-wide script menu isn't enabled already, go into AppleScript Editor's preferences window and turn it on.
3. Create a new script document and enter the following code:
4. Bring OmniFocus to the front, and from the system-wide script menu, choose Open Scripts Folder > Open OmniFocus Scripts Folder. This creates the following folder, if it doesn't already exist -- ~/Library/Scripts/Applications/OmniFocus
5. Go back to AppleScript Editor and save the script as OmniFocus > Prepare Task Completion Report into the ~/Library/Scripts/Applications/OmniFocus folder you opened in the last step.
Running the Script
Bring OmniFocus to the front. Next, select OmniFocus > Prepare Task Completion Report from the script menu. The script starts by asking for the scope of the report. Your options are to summarize tasks from today, yesterday, this week, last week or this month. Choose one, and click OK.
Next, the script retrieves a list of tasks within the specified timeframe, formats them as HTML, brings Evernote to the front, and creates a new note.
You've now got a summary of recently completed tasks in Evernote. Do you feel productive yet? Until next time, happy scripting!
Subscribe to Newsletter
Software Updatesmore updates
- YouTube for iOS gets updated with full support for iPhone 6 and 6 Plus
- iOS 8.0.1 update now available (Updated -- Don't update!)
- NFL Mobile updated for 2014 Season with new Fantasy Football features, NFL Now integration
- Yahoo Mail improves email inbox searching with new filtering options
- Ember for Mac gains 'hugely-requested' screen recording feature
- Spotify update adds equalizer, refreshed Artist page and more