Amazon.ca is amazing. Again.

I’ve written before about how much I like Amazon.ca, the Canadian arm of Amazon.com. Today they’ve blown my mind again.

On Sunday night I was finishing up the last couple of chapters of Long Way Round, a book by Ewan McGregor and Charley Boorman about a motorcycle trip around the world (it’s a very good read; they’re both entertaining writers, and they had an interesting adventure).

McGregor mentions a couple of times that the book Jupiter’s Travels was an inspiration for their trip. Being an afficianado of round-the-world travel tales, I decided to order a copy for myself. At 1:30 a.m. on Monday morning.

The book shipped on Monday. It arrived at my doorstep, via regular shipping, this morning. Just slightly more than a day after I placed the order.

Google Maps says it takes 18 hours to drive from Mississauga (where Amazon’s warehouse is) to Charlottetown. That leaves only about 15 hours for the “logistics” part of the transaction. That, to me, seems simply amazing. I can’t imagine how they would get the book to me any faster.

Better iPhoto to Drupal via AppleScript

I’ve updated my system for uploading photos from iPhoto to a Drupal image gallery. The original script required both an AppleScript and a PHP script. The updated script does the same thing, but without the need for PHP; it also handles upload of multiple images at the same time.

To install the updated script, here’s what you need:

  • The updated iPhotoToDrupal AppleScript. Save this, and then copy the text into Script Editor; set username, password and other variables to appropriate locations on your local system (including the edit[taxonomy][], which is admitedly kludgey), and then save the AppleScript in the Library:Scripts:iPhoto Scripts folder under your home directory. You can rename it something useful like “Upload to Drupal” if you like.
  • As before, if you don’t have the Script Menu utility installed on your Mac, go and grab it; it lets you call the AppleScript from a pop-down menu in the menubar.

Assuming you’ve got everything configured properly, you should now be able to select one or more images in iPhoto, call the script (from the Script Menu under iPhoto Scripts) and the photos should appear shortly thereafter in the appropriate Drupal image gallery.

As always, comments and suggestions welcome.

Logging in to Drupal from AppleScript

I found that it’s relatively easy to login to Drupal from AppleScript by using cURL. I created a sample script to show how; grab DrupalFromAppleScript, load it into Script Editor, enter values for your username, password and Drupal URL, and you should be able to get it to login to your site.

This will only get you logged in of course — you’ll have to amplify the script to make it do anything useful (like uploading content, grabbing information, etc.)

Pages