David Voswinkel wrote:

> try to create an new iPhoto album, But cant get it working. Is this  
> a bug?
>
>>
> app('iPhoto').make(new=k.regular_album, with_properties={ k.name :  
> 'New Album' })

The correct syntax would be:

        app('iPhoto').make(
                        new=k.album,
                        at=app.albums.end, # 'at' parameter should be optional 
here
                        with_properties={ k.name : 'New Album', k.type : 
k.regular_album })

or:

        tell app "iPhoto" to make new (album) at end of albums ¬
                        with properties {name:"New Album", type:regular album}

but that doesn't work on account of iPhoto's persistently shoddy  
scripting implementation which, disappointingly, is still a mess in  
the latest iPhoto 7.1.1.

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')


http://bugreport.apple.com if you'd like to file a report or three.

HTH

has

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

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to