Adding tasks from Alfred 3?

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 ?

Thank you for the great workflow.
The link is now inaccessible.
Can you provide the latest download link?
It would be great if you could put it on GitHub. 😊

Is this link working for you, @zbrl ?

Great! It’s work. Thank you!

You’re welcome. I’m glad it is working for you.

Hello — Is this workflow still working for anyone using Alfred 5? I can still summon the “Create task in OF” dialogue after typing “todo”. But typing afterward just triggers a Google search.

Thanks.

I don’t have Alfred 5, so I can’t test it.