> You have to use its weird, non-standard 'new album' command (which
> returns a broken reference, btw, so don't use that):
>
> app('iPhoto').new_album(name='New Album')
Thx for that tip. But now iam stuck with the task to add a photo to a
referenced album. I tried all kinds of app.add or app.make variations.
But i end up, getting no reference back and no photo added or raising an Error
1700 / 1701.
appscript.reference.CommandError: CommandError -1700: Can't make some data
into the expected type.
Failed command: app(u'/Applications/iPhoto.app').make(new=k.photo,
with_properties={k.class_: k.photo, k.image_path:
mactypes.Alias(u'/Users/david/Desktop/20071127_Misc/IMG_0299.JPG')})
or:
appscript.reference.CommandError: CommandError -1700: Can't make some data
into the expected type.
Failed command: app(u'/Applications/iPhoto.app').make(new=k.photo,
with_properties={k.class_: k.photo, k.image_path:
u'/Users/david/Desktop/20071127_Misc/IMG_0299.JPG'})
or:
ref = iphoto.add(file, to=album)
if ref is None:
raise
Is there a special hack to get a photo added ?
Regards David
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig