iPhoto Scripts and Plug-ins
by Derrick Story02/05/2002
As with many Apple applications, iPhoto has great potential, but insufficient controls for more advanced users. We've covered some workarounds in the article, Inside iPhoto: Image Management for Power Shooters, but sometimes you just need more program functionality.
The good news is that iPhoto does have a plug-in architecture and is scriptable using AppleScript. Here are a few nifty developer tools that let you get more out of iPhoto without having to resort to cumbersome workarounds or waiting for the next release.
BetterHTMLExport 1.1
Simeon Leifer has written an excellent plug-in called BetterHTMLExport, version 1.1 that gives you many more options for creating Web pages directly from iPhoto.
Not only can you control the compression of thumbnails and full-size images, you have some basic tag controls as well. My favorite feature though, is the automatically generated, hyperlinked page index that appears above and below the full image. This is a much more user-friendly way to move from picture to picture, rather than forcing viewers to use the Back button to return to the thumbnail page so they can see the next shot.
BetterHTMLExport 1.1 is way cool, and it's free, although Simeon does encourage donations if you're sufficiently moved by the software.
iPhoto Librarian 1.0
Another piece of handy freeware comes to us from Scott Schroeder who has written a first-rate AppleScriptlet called iPhoto Librarian 1.0. With Librarian you can set up iPhoto's default picture library to an external drive. This is helpful for those who want to dedicate a large FireWire hard drive to storing their digital images.
The script works smoothly, and it's one of Scott's first published efforts under the banner of Scruffy Software, Inc. Nice work, Scott.
iPhoto Toast Export Plug-in 1.0
|
| |
So you want to burn picture CDs directly from iPhoto? The Toast Export Plug-in, version 1.0, published by El Gato Software, lets you burn directly from iPhoto using Roxio Toast Titanium. You can share photos, albums, film rolls, or your entire photo library on CDs or DVDs. Very handy and very free.
|
Related Reading iPhoto: The Missing Manual |
AppleScripts from Apple
Last, but not least, let's not forget about the four AppleScripts published by Apple that automate a number of cool tasks.
My favorite of the bunch is the Show Image File script. You simply drag an image from the iPhoto window onto this droplet to reveal its source file in the Finder. Since iPhoto uses a screwy file-naming system for the pictures, this script helps you quickly locate those hidden images that would otherwise frustrate the heck out of you while you searched for them.
I hope these goodies will help make iPhoto life just a bit more enjoyable. If you stumble across something useful, let us know by posting a TalkBack below.
Derrick Story is the author of The Photoshop CS4 Companion for Photographers, The Digital Photography Companion, and Digital Photography Hacks, and coauthor of iPhoto: The Missing Manual, with David Pogue. You can follow him on Twitter or visit www.thedigitalstory.com.
Read more Mac Dev News Roundup columns.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 26 of 26.
-
BetterHTMLExport Tip
2002-02-05 20:17:54 Derrick Story |
[Reply | View]
-
BetterHTMLExport Tip
2002-02-07 14:21:46 lichme5000 [Reply | View]
Actually, you link back to the index page by clicking on the photo itself, so while it's not immediately obvious, that functionality is provided. -
BetterHTMLExport Tip
2002-02-07 14:49:59 ethanbrand [Reply | View]
Exactly! Figures, someone beat me to the punch. So all you'd have to do is include a text instruction, rather than HTML, in the comment field (or edit the template). Now, can anyone figure out how to get the album comments to appear on the page? -
BetterHTMLExport Tip
2002-02-07 15:17:37 ethanbrand [Reply | View]
In the ..Contents:Resources:English.lproj folder is a file called "imagePages.plist". Change the file type to .txt, open in text editor, scroll to the bottom and add "Click on the picture to return to the gallery." (or whatever you want to say) to the line shown below:
##NAVIGATION##
Click on the picture to return to the gallery.
</center>
</body>
</html></string>
</dict>
</plist>
Save the file and change the extension back to ".plist". Voila! Instructions built into every image page. -
BetterHTMLExport Tip - quick note
2002-02-07 15:22:30 ethanbrand [Reply | View]
Note: the lines of code I displayed in the previous message will look a little different because the "<" and ">" are < and > for those who don't know HTML. -
BetterHTMLExport Tip - doh!
2002-02-07 15:26:11 ethanbrand [Reply | View]
Argh...........hopefully you understand what I meant by that last post. Grrrr - wrong quotes....... -
BetterHTMLExport Tip - Imagine that
2002-02-08 01:04:45 Derrick Story |
[Reply | View]
Wow, I would have never thought to click on the picture to return to the index page, but it does work as advertised. I should have looked closer at the html. I like the ensuing tip for adding instructions.
I have to say that I'm really getting a lot of use out of this plugin -- it has made iPhoto much more valuable to me ...
-
iPhoto with OS X screen saver
2002-02-06 10:57:35 rgrant@mac.com [Reply | View]
As soon as I got iPhoto I wanted to use my photos with the OS X screen saver. Trouble is it isn't easy. To make it a bit easier I wrote a script that makes a folder of aliases that the screen saver can use.
http://homepage.mac.com/rgrant/FileSharing19.html
Hope people find it useful.
Robert.
-
iPhoto with OS X screen saver -- Cool!
2002-02-06 13:26:31 Derrick Story |
[Reply | View]
I just tried it, and the scriptlet works great. It's a great addition to my script library.
-
How to Install PlugIns
2002-02-06 13:32:17 Derrick Story |
[Reply | View]
I've received a couple notes about the "hidden" Content directory that contains the "PlugIns" folder. You're not crazy; it's not easy to find.
First quit iPhoto. Then find its icon in your Applications directory. Right-click (or CTRL-click) on the icon and choose "Show Package Contents" from the dropdown menu. Then open the "Contents" folder that appears. Now you'll see the "PlugIns" folder where you can drag and drop new items.
When you restart iPhoto, the PlugIn will be active. -
How to Install PlugIns -- Easier Way
2002-02-06 15:05:33 Derrick Story |
[Reply | View]
Stuart Smith dropped me the following note for an easier way to manage PlugIns:
"It is actually easier than that.
Do a Get Info in Finder on iPhoto. Choose Plugins from the menu. There's a
large Add... Button in that panel. Use it to navigate to your new plugin. It
will be copied to iPhoto/Contents/Plugins.
The interface (like much of Mac OS X) isn't finished yet. You can pick
absolutely anything (it doesn't have to be a plugin) and it will be copied
to the plugins folder. Also, the list of plugins isn't updated immediately,
you may need to Get Info on a different file and then come back to iPhoto to
see your newly-installed plugin.
If you disable a plugin it is moved to iPhoto/Contents/Plugins (Disabled)."
-
Show Image script file
2002-02-07 13:34:09 lichme5000 [Reply | View]
Yes, the show image script file is a nifty little script, but it is (imho) wholly unnecessary if Apple was willing to make a relatively minor improvement to iPhoto (and, for that matter, iTunes). I _really_ want the ability to delete photos from my hard drive for ever and ever from within iPhoto. Since it is supposed to be the best way to organize digital photos, it stands to reason that it is also the BEST way to delete them. It annoys me to no end that it doesn't allow me to do that. I just want a simple check box in my preferences that says "delete file from hard drive when I delete from library". That way, you're not left with countless crappy pictures on your HD that you don't want cluttering your library. This feature is even more necessary in iTunes, since it doesn't tie users to a specific library of mp3 files. Yes, I know it is possible to locate the mp3 file on the hard drive using the get info feature in iTunes, but that's just massively annoying.
I'm evangelizing here. Can I get a witness? -
Show Image script file -- I second that
2002-02-08 00:55:17 Derrick Story |
[Reply | View]
Yeah, you're so right.
Deleting an image in iPhoto only removes its ugly face from the library listing, not from the hard drive itself. Hmmm. So now I have all these creepy dark images living down there with the dragons eating up HD space.
A fix is definitely on my iPhoto wish list. -
Show Image script file -- I second that
2002-02-09 15:00:15 Adam Engst |
[Reply | View]
Umm, have you tested this? Deleting an image from the Photo Library (as opposed to an album) does indeed remove it from the hard disk, at least on my Mac. Try the following:
* Duplicate an image.
* Figure out the duplicate's filename (actually a number. Double-clicking to open it in another application for editing, as set in the Preferences window, is an easy way to do this if you don't have the Show in Finder script).
* Do a Sherlock search for the filename. You should find a couple of items in the iPhoto hierarchy starting with that number (a data file, a thumbnail, and the original, at least).
* Switch back to iPhoto and delete the image from within the Photo Library.
* Switch back to Sherlock and perform the same search. Every time I repeat these steps, all the files found in the previous search are gone.
cheers.... -Adam
-
Show Image script file -- I second that
2002-02-10 18:01:52 ethanbrand [Reply | View]
Agreed. My photo files seem to be deleted as well when I delete from iPhoto. Same goes for iTunes. Command-Delete in iTunes will give you a prompt about moving the file to the trash - answer yes and that mp3 is history. -
Show How to really delete the image...
2002-04-04 12:02:04 batesc [Reply | View]
How to delete an image and get rid of it from your HDD depends on where you delete it FROM. In iPhoto, if you are in Organize view and are working from the Photo Library list or the Last Import list, and you delete photos, they are completely removed from your system (i.e. they disappear from iPhoto views and the image files are deleted from your hard drive - you get msg "Are you sure you want to permanently remove the selected photo..."). However, if you are working from an album list and delete a photo, all it does is to remove the reference to the picture from the album list (i.e. the image stays on your hard drive and is still in your Photo Library). I think you'l find iTunes works in the same way the respect to deleting tunes from the Library view versus deleting them from within a playlist view.
This explanation makes sense of the conflicting postings in this conversation thread, and suggests that Apple have already provided a decent level of delete functionality. -
Show How to really delete the image...
2004-12-22 19:32:18 vprice [Reply | View]
I had a strange experience today. I created several new albums, and placed photos in them from my last import. Then I deleted them from my last import, and was left with one more cluster of photos, and higlighted all of those and dragged them to another folder. But in the act of dragging, something happened, and some of the other photos that I had just placed in albums--including the last photo of a friend who just died-- vanished. Those albums were totally empty. No message popped up warning me that they would be totally remove. But I can't find the photos--they are gone from last import and the photo library itself!
Any ideas about retrieving them?
-
iPhoto Library Manager
2002-02-09 00:32:59 Derrick Story |
[Reply | View]
Brain Webster has written a new tool that allows us to manage many iPhoto Libraries at once, iPhoto Library Manager. I've been using it today, and it's really helped me switch on the fly between three different libraries, including one that's on a different drive. This is a free utility. Thanks Brian!
-
Send iPhoto's via Eudora
2002-02-10 11:02:40 mattchildress [Reply | View]
I prefer to use Eudora for my e-mail, so I hacked the default script from Apple to use Eudora for OSX.
Available at:
http://homepage.mac.com/matt_childress/FileSharing2.html
-
New BetterHTMLExport Plugin
2002-02-11 04:13:30 ethanbrand [Reply | View]
I saw version 1.2 of this plugin on versiontracker today. It adds a direct link back to the main gallery page (as well as keeping the "click on the picture" feature) as well as the ability (and instructions) to completely customize your template pages. There are a few other minor additions, but since these two directly relate to the discussions we had below, I thought I'd post. This is a fantastic plugin. I love it!
-
Where is documentation on plugin architecture?
2002-06-25 22:15:57 bravada [Reply | View]
Hi,
Where is the documentation on the IPhoto plugin architecture? I want to try writing my own plugin.
Thanks,
Bravada
-
Where is documentation on plugin architecture?
2003-05-07 10:58:48 below [Reply | View]
I am wondering the same thing... anyone?
-
iPhoto Diet Droplet
2002-09-24 20:18:02 anonymous2 [Reply | View]
iPhoto Diet reduces the size of your iPhoto library by eliminating unnecessary duplicate photos or, if preferred, all backed-up originals. A useful utility for recovering hard drive space or fitting more photos onto a CD-R.
http://www.cpsc.ucalgary.ca/~fuhrer/personal/freestuff -
free up space - originals folders
2003-06-23 16:06:24 anonymous2 [Reply | View]
after importing pics from a digital cam,i always gotta rotate half o them,it seems that iphoto keeps a copy of the original photo in a folder called originals. what for???
i hope they will add an option about this.
i did a search for originals folder, got the list in finder and just deleted them.
if u ever rotate another pic there,it will recreate the original folder. so as long as you dont need the originals you can free up some valuable disk space.
the rookie







However, you're also allowed to include text from iPhoto's "Comments" field to accompany the image on the picture page. If you add a little HTML in the Comments field, such as:
you can generate a text link that appears on the picture page and will take your viewer back to the thumbnails page.