This article has been published a while ago.
If this is a technical article some information might be out of date. If something is terribly broken, let me know and I will update the article accordingly.
Some weeks ago I published a post on how to store your Jawbone UP data into DayOne.app. The script got quite popular and many people reached out to me with questions and smaller problems.
Today I want to show you how you can automate the execution of the script with Hazel.app. The app isn't free but has a 14-day trial. Just download it and try it out.
Open the Hazel preference panel and add your
up-logs folder to the folders list. (The
up-logs folder should be in your Dropbox folder
Create a new rule and add the following filter: Date added - is after - Date Last Matched. As soon as a new file is placed in your
up-logs folder Hazel will be triggered.
Now we configure the following action: Run shell script - embedded script. Then click on the little "i"-button next to "Edit script". Shell should be
/usr/local/bin/bash. The script which should be executed is:
$username with your Mac OS X username or adjust your path so that the file
toDayOne.sh will be found by Hazel.
The rule should look like my rule in the picture below.