Sync pause/resume: how to toggle from an outside script?

What I’m trying to do

On my corporate network, I want to pause obsidian sync: from a macos script I would like to control the option Pause / Resume available in the menu. A simple way would be to toggle a css snippet value to configure this option from an outside script, then probably restart Obsidian for the new config to take effect.

Things I have tried

I used developper view to try to identify the hook to toggle this , but could not identify yet where the sync plugin settings are.
I tried to set “sync”:false in the core-plugin-migration.json, but it does not influence the pause/resume of sync on the running app, even after re-starting obsidian.

Would anyone have any research direction to get a handle on this mode ?

Thanks in advance for your help,

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.