One of my gripes with Slogger is that when Instagram photos are added, they have no text captions. This makes sense though — the built-in system for adding photos is really as simple as passing the image as an argument.
Still, there had to be a way to make this work! I decided that with a little tweaking of my current IFTTT script, I could get captions included in my Day One entries.
The best way to do this is to setup your IFTTT script to download photos to Dropbox with good file-names. Mine's really simple; it's just CAPTION.jpg. Yep. With the text parsing I'm doing, this works just fine. If I want to sort by date, I can simply sort in Finder by "Date Added". No complaints there. Now for the code.
Let's start with slogger_image.rb
, the file used for importing Instagram photos.
After line 12, we see where the file is added as a variable: