Omni Automation Podcast

Episode 005: (Quick Tip) Siri and Omni Automation
A short video demonstrating how Siri can launch an OmniFocus automation shortcut using either “Type to Siri” or “Vocal Shortcuts.”

Related Links: (Podcasts)

Here’s the Omni Automation script, used in the video, to select the first OmniFocus Inbox item:

omnifocus://localhost/omnijs-run?script=win%20%3D%20document%2Ewindows%5B0%5D%0Awin%2Efocus%20%3D%20%5B%5D%0Awin%2Eperspective%20%3D%20Perspective%2EBuiltIn%2EInbox%0AinboxItems%20%3D%20inbox%2Efilter%28task%20%3D%3E%20%7B%0A%09return%20%28%0A%09%09task%2EtaskStatus%20%3D%3D%3D%20Task%2EStatus%2EDueSoon%20%7C%7C%20%0A%09%09task%2EtaskStatus%20%3D%3D%3D%20Task%2EStatus%2EAvailable%0A%09%29%0A%7D%29%0Aif%28inboxItems%2Elength%20%3E%200%29%7B%0A%09tree%20%3D%20win%2Econtent%0A%09node%20%3D%20tree%2EnodeForObject%28inboxItems%5B0%5D%29%0A%09tree%2Ereveal%28%5Bnode%5D%29%0A%09tree%2Eselect%28%5Bnode%5D%29%0A%7D
Select First Inbox Item
 

win = document.windows[0] win.focus = [] win.perspective = Perspective.BuiltIn.Inbox inboxItems = inbox.filter(task => { return ( task.taskStatus === Task.Status.DueSoon || task.taskStatus === Task.Status.Available ) }) if(inboxItems.length > 0){ tree = win.content node = tree.nodeForObject(inboxItems[0]) tree.reveal([node]) tree.select([node]) }

Transcription: (no narration)