TECHNOLOGY NOTES

Find Me

Search

Nerds on Draft 026 - Alfred Workflow Follow-up

I have gotten a few questions from listeners about my Alfred workflows in reference to episode 026 of Nerds on Draft. For those curious and intrepid souls, here is how I set them up.

For quick entry of Home-related tasks, I created an Alfred workflow that looks like this:

Then I added the following python code.

with file('/Users/<username>/Dropbox/<folder>/tpHomeProjects.taskpaper', 'r') as original:    data = original.read() 

with file('/Users/<username>/Dropbox/<folder>/tpHomeProjects.taskpaper', 'w') as modified:
modified.write("    - {query}\n" + data)

The home and work workflows are very similar. Just change the file names and the Alfred trigger.

To use these, just activate Alfred and type “wtodo” or “htodo” (or whatever you set to your default trigger work) and follow that with the text you want to add to your taskpaper file. It takes less than a second to run and I use it all day long.

Good luck and keep the questions coming!