Created
November 4, 2020 03:00
-
-
Save amites/e3688be23fbecc442ffb10503fc2ceff to your computer and use it in GitHub Desktop.
Applescript to create a "morning pages" journal prompt in evernote
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
(* | |
Evernote Morning Page | |
VERSION 1.0 | |
September 10, 2019 | |
USAGE: | |
Save with Script Editor | |
then open a terminal | |
run `crontab -e` | |
add entry `# * 6 * * * osascript ~/Downloads/evernote-morning-page.scpt` | |
save | |
** adjust `6` to any time you want the script to run | |
*) | |
(* | |
====================================== | |
// MAIN PROGRAM | |
====================================== | |
*) | |
--RESET VALUES | |
set myNote to {} | |
set noteLink to missing value | |
set todayDate to do shell script "date +%F" | |
tell application "Evernote" | |
--TEST TO SEE IF EVERNOTE IS CURRENTLY SYNCHRONIZING... | |
repeat until isSynchronizing is false | |
--THIS EMPTY LOOP WILL PAUSE SCRIPT UNTIL PREVIOUS SYNC IS FINISHED | |
end repeat | |
--CREATE THE NOTE | |
set myNote to create note title "Morning Pages -- " & todayDate with text "This morning I feel: | |
I am grateful for: | |
1: | |
2: | |
3: | |
" | |
open note window with myNote | |
--SYNCHRONIZE WITH EVERNOTE'S SERVERS | |
synchronize | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment