[Pythonmac-SIG] appscript create new iphoto album

has hengist.podd at virgin.net
Sat Dec 1 22:40:42 CET 2007


David Voswinkel wrote:

> But now iam stuck with the task to add a photo  to a referenced album.

AFAIK the only way to bring in image files is via the 'open' command,  
e.g.:

	iphoto.open([Alias('/path/to/image1.jpg'), Alias('/path/to/ 
image2.jpg')])

To add existing 'photo' objects to a specific album, use the 'add'  
comment, e.g.:

	iphoto.add(app.albums['Last Import'].photos, to=app.albums['My Album'])

HTH

has
-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org



More information about the Pythonmac-SIG mailing list