Jump to content


Photo

Parse Omnifocus Tasks


  • Please log in to reply
6 replies to this topic

#1 tsvoronos

tsvoronos

    Member

  • Member
  • PipPip
  • 28 posts

Posted 13 February 2013 - 01:37 PM

Here's a quick workflow that uses Omnifocus' built-in parsing syntax (the kind that is used for Omnifocus Mail Rules: @ for context, > for project, # for start or end time). You can edit the applescript to add whatever context or project specific stuff you want. Hope this is useful!

 

http://cl.ly/3q2n2S0s410N

 

Update:

 

From bnmnetp's suggestion, I added Subtext that summarizes the syntax. I also added two others for oft-used contexts (Waiting and Assignments), but you can delete or edit those at will. 

 

 

http://cl.ly/3D291e0e3v2o


Edited by tsvoronos, 18 March 2013 - 03:58 PM.


#2 bwanamatt

bwanamatt

    Newbie

  • Member
  • Pip
  • 14 posts

Posted 13 February 2013 - 07:04 PM

This is great, thanks!



#3 bnmnetp

bnmnetp

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 20 February 2013 - 06:54 PM

Great stuff,  In my copy I added the following text to Subtext just to remind me of the syntax:

 

@ context  # date > or :: project $ estimate  ! flag 

 

I just serves as a nice reminder, especially for those who are new to the syntax.


  • tsvoronos and Patrick like this

#4 stphnlwlsh

stphnlwlsh

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 07 May 2013 - 01:36 AM

Can someone show a query with all of the syntax items used? I'm having trouble with it.

 

Thank you!



#5 digisam

digisam

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 08 May 2014 - 12:00 PM

For those using the Omnifocus 2 beta

on alfred_script(q)
	set theText to q
		tell application "OmniFocus"
			activate
			tell default document
				parse tasks into with transport text theText
			end tell
		end tell
end alfred_script

Slightly modified from jsgreen's post : http://discourse.omn...ed-workflow/650



#6 ddougan

ddougan

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 12 July 2014 - 05:45 PM

I have nested contexts (e.g. Technology : Online) and find the script doesn’t handle these. I also tried > and :: with a Project name, but was unable to see my tests in the named project. Am I misunderstanding the syntax?

 

 
Thanks,
 
Des


#7 stig77

stig77

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 28 July 2014 - 08:15 PM

This is great. Does anyone know how to modify this to add the option to add a specific file to a specific project?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users