Adding tasks from Alfred 3?

Thanks a lot! it is very powerful!!!

same here. context autocomplete do not work…

Away from my home on a very long trip. Will look at that specific issue when I get back.

OmniFocus 3 changed Applescript dictionary. Flattened context became Flattened Tag. I changed the script accordingly. It should work now.

Link:

Alfred Workflow OmniFocus 3

7 Likes

I am really interested in this great script but it seems it doesn’t work with Alfred 3 / Omni3 yet :(

Thanks! I just tried it and it works great!

Is there a way to add a task to the Inbox instead of picking an existing project? It would make adding a quick thought to OmniFocus easy, and you could sort out later where to put it.

I updated the script to show the Inbox as the first option when adding a task.

This adds the task to the inbox. Likely this is what I will use most often.

However on further testing no matter which project I select it only adds the task to the inbox…

Thanks for the feedback. I will check when I get home.

Solved. Tell me if it works now.

Thank You!

It now works fine.

I found that you can set a flag by adding ! after the task, and set the date with :: followed by the date. Pretty neat script!

1 Like

I added “Flag! @Context ::Project (#Start #Due) $Duration //Note” to the subtext to remind me what options I can use if I chose to.

I have not tested all of them yet, but the ones I have tried have worked

Hello, link above for Alfred 3 version is not longer working. Can somebody reupload it for me? Thanks! :-)

Which link are you referring to? They are working for me.

Ok, now it works.

Thanks for your “Alfred Workflow OmniFocus 3”, It’s a great work.
But how can i add this code into your workflow, when I need to create a task with the Safari tab’s URL and Title.then I also can use “::”, “@” to choose my “Context” and “Project” ,when I create this task.

on alfred_script(q)
tell application “Safari”
set theURL to (URL of current tab of window 1)
set theTitle to (name of current tab of window 1)
end tell

tell application “OmniFocus”
set theDoc to front document
set theTask to theTitle
set theNote to theURL
set NewTask to make task with properties {name:theTask, note:theNote}
end tell
end alfred_script

Not a straightforward change and necessary to do a major rewrite. Going to be busy in the upcoming week but will think about a way to do it.

Hi, could I get this workflow from you? because can’t find it anymore, thank you very much!

Very far away from my desk – could you download latest version ?