Way to automate hide/show Perspectives Bar on macOS?

I see properties to hide/show the sidebar and inspector of a document window in OmniFocus automation. Is there a way to hide and show the Perspectives Bar?

I am trying to write a plug-in that:

  1. Opens the currently selected project/task in a new window
  2. Focus on the project
  3. Hide the sidebar
  4. Hide the perspectives bar
  5. Resize the window to be narrower

I have 1 - 3 working fine.

Are items 4 and 5 even possible with Omni Automation?

From what I’ve analyzed in the API that’s currently not possible. There’s only a keyboard shortcut.

1 Like

That was what I found as well. I was hoping that maybe I had missed something.

On my Mac, I used keyboard maestro to hide the sidebar and then do all the other stuff.

Or have KM run your shortcut, hide the sidebar with KM, then run a second shortcut to finish.

1 Like