The AppleScript in this GitHub repository retrieves a list of OmniFocus tasks completed yesterday or today. It then sends an email report of those completed tasks.
This script is based on the following original scripts: Ben Waldie’s script and Justin Lancy’s script.
In a conversation with a friend who is learning how to use OmniFocus, it was suggested that a daily summary of one’s work accomplished each day — here, in the form of a nightly email report — would provide a useful perspective on one’s effort and progress. Hence, this script.
Three properties need to be configured at the top of the script: toAddress
, fromAddress
, and theReportScope
. The script can be used as any other AppleScript (called by AppleScript Editor.app, run from the command line, etc). Of note, this script can easily be called on schedule by using the following Cronnix crontab command: /usr/bin/osascript path/to/Email OmniFocus Task Completion Report.scpt
The script generates an email that looks like this:
This code was written and tested using Mac OS 10.9.1. If you find an error, please let me know. Please use this code at your own risk.
License: this is free and unencumbered software released into the public domain. Full license here. For more information, please refer to unlicense.org.