I'm trying to learn how to use appscript but I don't understand
what I'm missing. I want to read photo info from iPhoto and have
things working ... partly
The script looks like this
from appscript import *
selected = app('iPhoto').selection.get()
for item in selected:
print 'Width : ', item.width.get()
print 'Height : ', item.height.get()
print 'Path : ', item.image_path.get()
print 'Comment : ', item.comment.get().encode('utf-8')
print 'Title : ', item.title.get().encode('utf-8')
# set ptitle to date of item 1 of the selection
# app(u'iPhoto').selection.items[1].date.get()
print 'Date : ', item.date.get()
# AttributeError: Unknown property, element or command: 'date'
The problem is the line where I try to get the date info, the
first commented line is the applescript line I'm trying to
translate, the second is what ASTranslate tells me, and the
third is the error message I get.
Does anyone have a suggestion what I'm missing?
jem
--
Jan Erik Moström, http://mostrom.eu
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig