Logging book reviews in Day One using Keyboard Maestro

I use Day One to keep track of the books I read, and I upon finishing a book I rate it, log my thoughts and opinions of it, and include a cover photo and the link to the Kindle edition on Amazon.

I’ve been doing this manually for way too long, but this week I finally had the wherewithal to cobble together a way of doing it wherein I’m clicking a lot less and Keyboard Maestro does most of the heavy lifting for me.

The following works beautifully as long as I make sure to move the Day One window far enough to the right that the entire book cover image on the Amazon page will be visible to the left when Safari pops up in the background. I still haven’t figured out how to get the image copy/pasted if it’s not sufficiently visible.

I make a new entry in Day One before hitting the hot key which runs the following macro:

DOBLOGRating variable allows me to choose which rating I want to use

Full URL for Amazon search is https://www.amazon.com/s/?url=search-alias%3Daps&field-keywords=%Variable%DOBLOGTitle%

I took a screenshot of the Look Inside graphic as waypoint for finding the cover image

This merely cleans the URL up a little, not necessary

Pastes my input and Amazon’s input into Day One and tags it

All I have to do now is enter my opinion, and press done, et voilà! a lot less clicking for me.

Alphabetize a list using Keyboard Maestro 7

I tried using MacDrifter‘s excellent Keyboard Maestro macro to alphabetize a list from 2011, but it didn’t work.

I have no frakkin’ clue of how to use Keyboard Maestro or AppleScript, but I muddled through and figured out which two changes makes it work for me. The script is on the bottom of this page.

Changes for Keyboard Maestro 7

  1. Used Cut to Named Clipboard… instead of Set Clipboard to Named Clipboard…
  2. Dropped Type the %variable% Keystroke…

Getting your Photostream images into Lightroom

I don’t use Photos or iPhotos, I use Lightroom, but I still want all my pretty cellphone photos to magically appear without me having to do any work. Hazel can make that happen.

1. Find and open your Photos Library

In Pictures, choose the Photos Library, and right-click. Choose Show Package Contents from the context menu.

Inside the Photos Library package, open the Masters folder and note there are subfolders named by year. Each of these subfolders need to be added to Hazel as watched folders.

Hazel won’t let you browse into a package so to be able to add these year folders, first make an alias of each folder (right-click each folder and choose Make Alias).

2. Move aliases

Move the aliases you made in the previous step into a new folder outside the Photos Library package. I made a “processing” folder called Hazel – Photos to Lightroom for this purpose. Inside that folder I place the alias folders, but also create a !Lightroom Import folder which I will tell Lightroom to import from at a later stage.

3. Add aliases to Hazel as watched folders

Add each aliased folder to Hazel. Add the following two rules to each aliased folder you told Hazel to watch

4. First Hazel rule

Add the Go into subfolders rule to each aliased folder

5. Second Hazel rule

Add the Move images to Lightroom Import Folder rule to each aliased folder. The folder you choose to move to should be one you have already created in the “processing” folder in Step 2.

I choose to move the image files, I don’t recommend it, I don’t know what might happen and I’m pretty sure it probably breaks Photos somehow. As I don’t use Photos at all, and it seems to work for me so far, I don’t really care. However I strongly recommend COPYING the image files in this stage rather than moving them. Remember COPY DON’T MOVE.

6. Import the new photos into Lightroom

I choose to import the photos manually, that way Lightroom moves them to the appropriate subfolders in accordance with my preferences.

If you don’t care how the photos are sorted, you can make Lightroom do an auto-import by setting it to watch and auto-import from the folder Hazel moves (copies) the image files into. If you do that, the entire workflow should be completely automated.

Automation For OS X and iOS

A collection of articles I’ve found helpful.

OS X – Setup & Installation

Hacker’s Guide to Setting up Your Mac
A guide to setting up a new Mac quickly whilst leveraging the power of automation.

A packet manager for OS X

Homebrew Cask
Extends Homebrew allowing one to install apps.

OS X – Automator

Automator for Mac OS X: Tutorial and Examples
A tutorial covering some basic ways to use Automator.

Getting Started with JavaScript for Automation on Yosemite
Assumes working knowledge of JavaScript already.

OS X – Keyboard Maestro

A Beginner’s Guide to Automating Your Mac with Keyboard Maestro
Does what it says on the tin.

Keyboard Maestro I: Introduction
First in a series of tutorials meant for beginners.

iOS – Workflow

8 Reasons to Love the New Workflow App for iOS
Some Workflow basics.

Thought Asylum’s collection of Workflow Posts
Not just posts, but downloadable Workflows too.

iOS – Launch Center Pro

Automating iOS: A Comprehensive and Updated Guide to Launch Center Pro
A fantastic article on how to use Launch Center Pro

Launch Center Pro: An Adoption Strategy…
Not a how-to automate with LCP so much as a how-to force yourself to use LCP.

Quantified-Self: The Power Of Day One & Launch Center Pro**
Basics of using Day One and LCP together.

iOS – Day One

Day One / Templates
Tools and techniques to extend Day One. LCP, Workflow and TextExpander are all featured.

Hazel Rules – Seamwork Magazine

I have subscribed to Seamwork Magazine since the beginning, but it wasn’t until yesterday I got fed up enough with downloading and renaming the various files each issue is comprised of to actually do something about it.

I made a couple of Hazel rules (in order. This is important!) in my Downloads watched folder, I’m sure I’ve either done it “wrong” or in a terribly clunky way, but it works and that will do for now.

So now all I have to do is download the magazine PDF or pattern zip file in question to my downloads folder and they are automagically unzipped, renamed, tagged and moved to the correct locations and any leftover folders are deleted.

The Downloads watched folder

Unzip Archives

Act on Seamwork Folder

Seamwork Patterns Rename, Tag & Move

Seamwork Magazine Rename, Tag & Move

Renaming pattern

I replaced as follows (quotes not included, merely to show spaces etc.):

“seamwork-” with “Seamwork ”

“-all-1127” with “ all”

“-content-1127” with “ content”

“-instructions-1127” with “ instructions”

“-wide-1127” with “ wide”

“-“ with “ – “

I also checked Title Case.