One last tip: if you’re a Notational Velocity or nvALT user, you can use that app to quickly save new text files using the above method by setting up a Hazel rule to watch the NV folder for files named in a specific format, and whisk them over to your “Day One” folder we set up above. (Big thanks to a_freyer over on the Noodlesoft Forums for Hazel for helping me with these scripts to add to Day One, prepend the date/time, and append file contents) Printf "\n" > /Users/George/Dropbox/Notes/Journal.txtĬat "$1" > /Users/George/Dropbox/Notes/Journal.txt usr/local/bin/dayone -d="$(GetFileInfo -d "$1")" new "$1"Īppend file contents to the Journal.txt file: Here’s the shell script for the Hazel rule: By doing this using Dropbox, you can save new entries from any Dropbox-enabled text editor. Using Hazel, you can automate the process when new files are added to the watched folder. Set up Hazel with the proper shell script The Day One CLI allows you to interact with Day One behind the scenes. Since the Drafts setup is optional, I’ll save that for the end. The Mac app doesn’t even support them yet anyways. You lose the location and weather info, but those can be manually added. I use this setup to automate the addition of new entries in Day One by saving text files via Drafts to Dropbox.
0 Comments
Leave a Reply. |