🪴 AppleScript to Backup Bear

Attempt to make a backup of Bear library to a folder in Dropbox.

set the clipboard to “~/Dropbox/Application Support/Bear - Backups/“

tell application “Bear”
  activate
end tell

tell application “System Events”

  tell process “Bear”

    click menu item “Backup Notes…” of menu “File” of menu bar 1

    keystroke “G” using {command down, shift down}
    delay 1
    keystroke “v” using {command down}
    delay 1
    keystroke return
    delay 1
    keystroke return

  end tell

end tell

Research

Made by Brandon . If you find this project useful you can donate.