Created
May 1, 2021 03:01
-
-
Save varenc/81088c29a4e21e1cfe79ed321599c9b5 to your computer and use it in GitHub Desktop.
Pause and Resume Dropbox's syncing from the command line with AppleScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
-- Pause syncing | |
click menu bar item 1 of menu bar 2 of application process "Dropbox" | |
click menu item "Pause Syncing" of menu 1 of menu bar item 1 of menu bar 2 of application process "Dropbox" | |
delay 2 | |
-- Now re-enable syncing | |
click menu bar item 1 of menu bar 2 of application process "Dropbox" | |
click menu item "Resume Syncing" of menu 1 of menu bar item 1 of menu bar 2 of application process "Dropbox" | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment