May 2013

Based on some feedback from people who tried it, I’ve updated the Load Images AppleScript that I use with Apple Mail to load images in email messages using a keyboard shortcut.

The new version deals better with older versions of Mail, and adapts to several different configurations of Mail for Mac OS X 10.7 and 10.8. It should work reliably for a lot more people.

The original post has the download link, and the script contains the version history, and a lot of details in the comments.

{ Comments on this entry are closed }


by Michael Alderete on 5/23/2013

If you’re an audiobook fan, I recommend heading over to and signing up for their newsletter. The weekly deals have been terrific, with free or inexpensive unabridged audiobooks offered regularly. The current promotion is “Huck for a buck”.

Huck for a buck

The books are all “classics”, which is another way to say that the copyright is expired and the text is in the public domain. (I.e., no author royalties to pay.) That’s OK, these are still cool books. I’ve picked up Frankenstein, Treasure Island, Robinson Crusoe, and The Adventures of Huckleberry Finn for the grand total of $1.1 also has a terrific library of best sellers and new releases, including a few series that are on my list of recommended audiobooks, like the Vorkosigan Saga, the Harry Bosch series, and the Sookie Stackhouse books that inspired the HBO series True Blood. Their prices are competitive with, they have a subscription plan that’s even cheaper, and they have apps for both iPhone (iOS) and Android.

These guys are great, I recommend you check them out. The newsletter sign-up form is at the bottom of every page.

  1. Before you say “I can get all those same books at LibriVox, and more besides, for FREE”, no, you can’t. The versions have terrific production values, recorded by professional voice talent in a professional recording studio. LibraVox, while a neat service, is amateurs of varying levels of talent reading into microphones of varying levels of quality in environments with varying levels of extra noise. There’s no comparison. 

{ Comments on this entry are closed }

I Fixed the Link to My Email for Aldo on Audiobooks

by Michael Alderete on 5/23/2013

Whoops. Apparently when I set up with my new hosting provider, I didn’t create the dedicated email address I use for Aldo on Audiobooks. If you emailed me in the past two months and it bounced back, I’m sorry! No wonder no one had any new questions! Try me again, and I’ll try to do better at responding this time.

{ Comments on this entry are closed }

I like Apple Mail for Mac OS X, but one thing that irritates me to no end is that the Load Images button (Load Remote Content in Mac OS X 10.10), which loads the images in a message on-demand, doesn’t have a keyboard shortcut. Because it’s not a menu item, there’s no easy way to add one. I looked for a way to add a keystroke to Load Images for more than five years before I finally found a way to do it.

The hard part is triggering the Load Images button itself, by anything besides a mouse click. What finally did it was using the GUI Scripting feature of AppleScript to tell the button to click itself. Once I had an AppleScript that worked, it was simple to use FastScripts to trigger the script with a keyboard shortcut.

Why don’t I let Mail load images automatically? Spammers use image loading to confirm the validity of an email address. See this Apple Support Forum post for some details, and how to turn it off.

AppleScript to Load Images in Apple Mail

Download the Load Images script v1.6, 2014-12-31

The work of the script can be done by a single line that might look like this:

click button "Load Images" of 
    UI element 1 of row 1 of table 1 of scroll area 1 of front window

(Because’s user interface has changed across various versions, and with different preference settings, the actual code is more complex. See the AppleScript for the full, ugly details.)

This user interface elements path, or specifier, tells the GUI Scripting system how to reach a specific user interface element, in this case a button, and what to do with it. It’s far from obvious how to determine one of these UI specifiers just by looking at a Mail window; I used the very interesting developer tool UI Browser to figure it out.

It’s also specific enough to be brittle; it has changed from prior versions of Apple Mail, and will probably change in the future. When it does this script will stop working and start beeping. I’ve written the script to adapt to a few different version and configuration possibilities, and I’ll try to update it if it ever breaks. The current version (v1.6) is compatible with Mac OS X 10.5 (“Tiger”) through Mac OS X 10.10 (“Yosemite”).

The rest of the script is error handling and AppleScript ceremony. It should make sense if you’re familiar with AppleScript, and there are plenty of comments, so I won’t describe it here.

Add a Keyboard Shortcut for Running the AppleScript

Adding a keyboard shortcut for an already-existing menu item is easily done using the Keyboard preference pane. Adding a keyboard shortcut for an AppleScript requires a third-party utility. You might already have a favorite—there are lots to choose from—and so do I. FastScripts from Red Sweater Software does a great job handling application-specific AppleScripts, and it’s free if you don’t need more than 10 keyboard shortcuts. (It’s also a good value at $14.95 for the unlimited version.)

Create the shortcut for the AppleScript

  1. Install and run FastScripts, and then switch to
  2. From the FastScripts menu, choose Open Mail Scripts folder. Open Mail Scripts folder menu item
  3. Move or copy the Load Images script into the Mail Scripts folder.
  4. From the FastScripts menu, choose Preferences…, click the Script Shortcuts tab, and add your preferred keyboard shortcut. Keyboard shortcut for Load Images AppleScript

Note: If you use the same keyboard shortcut I did, Command-Shift-L, you’ll need to change the keyboard shortcut for the existing menu command that uses it, by adding a new one to that command, using the technique at the Mactuts+ article linked above.

{ Comments on this entry are closed }