Automator Script to copy photos from iCloud PhotoStream into Lightoom

Background

iCloud Photo Stream is limited to a copy of the last 1000 photos, and 30 days or something.
Camera roll is everything, unless you delete something.
Camera roll is backed up to the iCloud as part of the phone backup

Automatically import photo stream photos into Lightroom:
These instructions didn’t work for me, because the Filter Finder Items wasn’t returning all the images, only the last one

These instructions worked, and in case they go away, here they are:

Preview

This link talks about how to get a notification for the automator action, which I integrated into my recipe, which now looks like this:

Preview

BTW: I got this image from the automator package, which is located here:  /Users/jake/Library/Workflows/Applications/Folder Actions/

The upside-down text is weird. Here it is copy and pasted:

on run {input, parameters}
    repeat with i from 1 to the count of input
        set thisItem to item i of input
        set thisPath to the quoted form of the POSIX path of thisItem
        set thisFilename to (do shell script "basename " & thisPath)
        if i is 1 then
            set the nameString to thisFilename
        else
            set the nameString to nameString & ", " & thisFilename
        end if
    end repeat
    return nameString
end run

Which results in this:

automator notifications

It would be cool to be able to include a thumbnail of the image in the notification…

I’ve been running this script for a while now, and it seems to be working nicely on Mavericks 10.9.5.

The next part will be configuring Lightroom to automatically import from that directory.

But what to do about Dropbox? Keep it as is, automatically importing photos?

And then what is the easiest way to get rid of photos from the Camera Roll?

Things I’ve learned on the Mac so far

I bought a 27 inch iMac last year, and I’ve been trying to get used to it ever since.

Here’s what I’ve figured out so far:

  • There is no “cut” feature in Finder, only “copy”. To get “cut” you must first “copy” and then when you are ready to “paste”, hold down the “option” key, and the “copy” turns into “move”.
  • Install XtraFinder. It adds the following features to Finder
    • Multiple Tabs
    • Options to arrange folders on top of files
    • “Copy Path”, “Show Hidden Items”, “Refresh”, “Copy to”, “Move to”, “New Terminal Here”, “Make Symbolic Link”, “Contents”, …
  • Install DoubleCommand to make the “home” and “end” buttons on the keyboard work properly. Be sure to uncheck the “Enter Key acts as Command Key” or else the Enter key on the numeric keyboard will appear to stop working.
  • To make the forward delete key work properly in the terminal, edit the current Terminal profile, go to Keyboard, and look for the forward delete symbol. If it’s not there, add a new mapping. Select “Send Text” as the action, and then press ⌃-⇧-D (Control-Shift-D) in the input box. it will record it is \004. You are now good to go.
  • Any keyboard shortcuts you’ve defined on your iPhone will sync to the Mac, assuming you’ve got iCloud enabled. Except that these shortcuts don’t work in Chrome because they’ve opted not to use the MacOS spell-check thingy.
  • The Solarized project has a great colour scheme, and they have the setting for the Mac Terminal program, which is nice.
  • I use PureText on Windows to paste from the clipboard in plain text. On the Mac, you can get the same effect by using ⌥-⌘-V (Option-Command-V).

(Handy page with Unicode HTML entities for Apple key caps)