[Pythonmac-SIG] appscript create new iphoto album

David Voswinkel david at optixx.org
Tue Nov 20 18:40:41 CET 2007


Hi,

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' })
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  
File "/Library/Python/2.5/site-packages/appscript-0.17.2-py2.5-macosx-10.5-i386.egg/appscript/reference.py", 
line 387, in __call__
    raise CommandError(self, (args, kargs), e)
appscript.reference.CommandError: CommandError -2710: errOSACantCreate
        Failed command: 
app(u'/Applications/iPhoto.app').make(new=k.regular_album, 
with_properties={k.name: 'New Album'})






More information about the Pythonmac-SIG mailing list