Here’s an Automator script I spun up to meet some very specific needs of mine. Every night (or first thing in the morning) I try to map out my day, and this script does most of the work setting this up.
This script intelligently pulls in information from:
- Tasks with the ‘@due’ tag (in the current document)
- Events from Calendar.app
- Schedule templates stored in a “Schedule Templates” project
And this is what the script does:
- Renames the ‘Today’ project to ‘Yesterday’
- Creates a new ‘Today’ project with…
- A ‘Schedule’ project prepopulated with tasks from a schedule template (a ‘Schedule Template’ project anywhere in your document) plus a list of the day’s events from Calendar.app
- An empty ‘Work Tasks’ project
- An empty ‘Secondary Tasks’ project
- And a ‘Suggested Tasks’ project, listing (just the names of) ‘Due Tomorrow’ tasks and ‘Due Soon’ tasks (i.e. tasks due in the next 7 days)
The idea is that this will set up a plan that can be quickly edited and turned into a complete plan for the day.
For example, this script will spit out a nearly-ready daily plan that looks something like this:
Today: Schedule: - Meditate - Morning Walk - Lunch - [Other not-quite-task/not-quite-calendar-event items that are part of your routine] - (10:00 AM) Meeting with Janet - (1:15 PM) Tennis with Antonia - [Any of today's events from Calendar.app] Work Tasks: Secondary Tasks: Suggested Tasks: Due Today: - Call Michael about party - Finish editing chapter 2 - [Any item that matches the "@due >=[d] -12 hours and @due <=[d] +12 hours" search query] Due Soon: - Apply for Templeton Grant - [Any item that matches the "@due >=[d] +12 hours and @due <=[d] + 7 days" search query]
In the future, I plan on pulling in different schedule templates depending on the day of the week.
I’m also now thinking that I might abstract away all of my idiosyncratic formatting and instead create a more powerful ‘magic template’ script that:
- When triggered, asks the user which ‘magic template’ to create
- Inserts an outline that’s based on a template document
- And that template document can include either static text or plantext ‘commands’ to generate lists based on searches
Any feedback/bug reports much appreciated!
(I’ll add this to the extensions wiki once I’m sure I’ve caught any bugs/finalized the script)
Quick Task Planning.workflow.zip (148.1 KB)