🪴 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
- https://stackoverflow.com/questions/2111736/applescript-or-automator-to-click-on-menus-in-an-application#11268773
- automator
- automatorworld
- dougscripts
- mac
- mac 2
- macosxautomation
- macscripter
- stackoverflow
- https://stackoverflow.com/questions/13420933/applescript-change-to-folder-save-dialog
- macscripter
- macscripter 2
- macscripter 3
- stackoverflow
- stackoverflow 2
- apple
- koozie
- macscripter
- ohdoylerules
- satimage
- stackexchange
- stackexchange 2
- stackoverflow
- superuser