I'm new to KM and have been Googling the heck out of this question, but without any luck. I would like to pause OneDrive sync when connected to a specific wifi network (my mobile hotspot).
I know I can use the wireless network as a trigger (this works well), but can't figure out how to pause OneDrive Sync.
Usually, to pause OneDrive sync you have to click on the status menu icon, click [More...] and then click "Pause Syncing" then click "2 hours"
The Pause isn't available as a menu item (that I've been able to find). It's only accessible through the status menu. I can't seem to use "image search" because the status icon changes and is animated.
In terms of AppleScript. I've gotten as far as being able to click the OneDrive status icon, but can't get any further (see code below).
tell application "System Events" tell UI element "OneDrive" tell menu bar item 1 of menu bar 2 perform action "AXPress" end tell end tell end tell
Would love any help!!!