I’m trying to get a list of items that are shown in one of my custom perpectives, for use in a shortcut (namely, a WidgetPack shortcut to show these items)
I’ve managed to get my custom perspectives “primary key” via the automation console (not trivial …)
I can run the following action: Process { “type”:”perspective”, “primaryKey”:”xxxx”} into a database object
Which outputs the (not very helpful):
Input was successfully coerced into a Perspective. Use the “Perspective” value on the result.
My logical next step would be to use something like “find Item” to enumerate all tasks from the perspective, but there is no selection to use the Perspective value…
I don’t think it’s possible. As far as I can see, you can only use that ‘Perspective’ value as the parameter to the ‘Show in OmniFocus” action, which will open the perspective in the app. The ‘Find Items’ action uses its own detailed filter criteria and you can’t pass a perspective value to it.
I’m pretty sure that it’s also not possible to use an Omni Automation script to get the items returned by a perspective.
I requested this the other day and was told it’s not the first time they’ve heard the request! If you send in an email they can add your vote to the feature which pushes it higher up the list :)