最强GTD Omnifocus3 (mac)

资源见: https://github.com/penn201500/omnifocus3-applescript
搭配 keyboard mastero 使用更佳!

omnifocus3-applescript

  • some applescripts for omnifocus 3
  • some content comes from Internet, pls test before use

chooseFromTagList.scpt

choose one from several tags, and set for selected tasks:

在这里插入图片描述

duration.scpt

Estimated Duration of Selected Tasks, unit is minute.

set duration to 15min:
在这里插入图片描述

defer.scpt (depend on OmniFocusStrLib.scpt)

  • please copy OmniFocusStrLib.scpt in ‘~/Library/Script Libraries/’ directory

defre 1 day for selected tasks:
在这里插入图片描述

update_defer_data_to_now.scpt

  • if a task’s defer date is before today, update it to today’s date
  • if a task is defter today, delete its defer date
  • if a task is due after today and defer date after today, do nothing
  • if a task has no due today, update it to today’s date

在这里插入图片描述

after:

在这里插入图片描述

how to get duration(end-start) of one task?

strat.scpt

  • tag selected task with ‘#Ongoing’, and notify you ‘action started’
  • add ‘TBegin 0 636… TEnd’ to the end of notetext
  • the number in ‘TBegin 0 636… TEnd’ should not be big number such as 10+E5… If it’s big number already, change oriDate to someday lately:

在这里插入图片描述

在这里插入图片描述

stop.scpt

  • remove selected task’s tag ‘#Ongoing’, and notify you ‘action stopped’
  • change ‘TBegin 0 636… TEnd’ to be ‘TBegin 636… 0 TEnd’

在这里插入图片描述

report.scpt

  • based on the date info in notetext written by start.scpt and stop.scpt, report.scpt can generate a report file and send it to your evernote
  • generated report will contain: completed task with task info, start date, complete date and duration
  • report will create a folder named Omnifocus_reports in Evernote
  • after excute report.scpt, there will be a dialog displayed like this:
    (item listed is report’s time range)

在这里插入图片描述

the report sent to evernote is:

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-hMmitiB5-1587708612003)(media/15841737663020.jpg)]

在这里插入图片描述


版权声明:本文为justheretobe原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。