![]() ![]() That appends text to inbox.txt in my Dropbox folder. With the hard work out of the way, I just define a custom Dropbox action in Drafts Show without line numbers 1 2 3 4 5 Label 6 -merge-inbox 7 Program 8 /Users/grigg/bin/taskpaper_merge_inbox.sh 9 StandardErrorPath 10 /Users/grigg/Library/Logs/LaunchAgents/taskpaper_merge_inbox.log 11 StandardOutPath 12 /Users/grigg/Library/Logs/LaunchAgents/taskpaper_merge_inbox.log 13 WatchPaths 14 15 /Users/grigg/Dropbox/Tasks/inbox.txt 16 17 18 Drafts and Dropbox Here is my Launch Agent definition, stored in a plist file in ~/Library/LaunchAgents. Has a very low overhead and means that my shell script will be run within seconds Since OS X keeps an eye on all filesystem changes, this actually Using the WatchPaths key, I can have the shell script run whenever my inbox.txt One solution would be to run the shell script on some kind of timed The next step is to automate the merging. (Of course, the Python script could have done these last steps also, but it’s muchīetter to make the Python script generic, so I can use it for other purposes.) Watch inbox for changes My TaskPaper file, I use some AppleScript within this shell script My inbox.txt file into my tasks.taskpaper file, and deleting the Finally, it inserts each new task at the end of the appropriate project.Ī shell script calls the Python script with the correct arguments, merging ![]() Reads my main TaskPaper file, and figures out where each project begins andĮnds. Anything without a project is assumed to be in the inbox. Task has a project tag, it removes the tag, and then it groups the tasks by My script reads in a text file and interprets each line as a new task. Since TaskPaper files are just plain text, this is not too I wrote a Python script to insert new tasks in the proper place ![]() It’s like iCloud, but without the mystery. Is in place, I just enter one or more tasks into Drafts on my phone,Īnd three seconds later, it is in my TaskPaper file on my Mac. That sounds convoluted, but once each piece of the pipeline Here’s my new favorite way to get tasks into TaskPaper. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |