I’m looking for a way to adjust the Contents criteria of a Perspective’s view options. This could be as basic as enabling/disabling (toggling) particular criteria using Applescript or Automation. I’m currentlly using Keyboard Maestro to adjust criteria, but this method – at least the way I’m achieving ti – is heavily dependent on Found Images which is unreliable.
You should look at this: OmniFocus: Perspective
Chapter „ Adjusting Filter Rules using Omni Automation“ and „ Filter Rules and Values“
Just a question.
Why not have two different perspectives and just switch between the two with a keyboard shortcut?
Automating perspective settings just feels like complicating a simple solution.
Indeed I may. The idea is that I have a number of perspectives. I essentially want to “switch modes” between work and personal, almost like having two OF databases. Using Automation, I could quickly “switch the mode” of any of the perspectives between work and personal.
That said, I would appreciate a feature, maybe a button on the toolbar, that switches all the perspectives between work and personal, again like having two OF databases, one for work and one for personal. Seems frivolous though, so I haven’t mentioned it as a feature request:-)
You could use your device‘s focus mode to set the focus of OF. Then you‘d not have to fiddle with the coding internals of perspecives.
Go to Settings → Focus. Select e.g. Work and at the bottom focus filter. Press the + to add a filter. Choose the app filter OmniFocus. Select the folders you want to see at work.
Using your device‘s focus Work you‘ve set OF focus to the relevant work folders and won‘t see another projects/action groups/actions.
The main disadvantage is you loose the OF focus capability e.g. to dynamically focus on a group of projects.
Simple is this Apple Shortcut as well. Follow the setup. Alll elements of the list are considered folders and it sets the focus on these folders. Two shortcuts one for work and one for personal and you‘re good to go.
https://www.icloud.com/shortcuts/0362378386664f368f8fbb06e88e8c32