Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-19 Thread Simon Brunning
On 4/18/07, Dethe Elza <[EMAIL PROTECTED]> wrote: > On 18-Apr-07, at 2:14 PM, Daniel Thorpe wrote: > > Does anyone know if it's possible to access the star rating of a > > photo from iPhoto using appscript? > You don't strictly need AppleScript for this (unless you want data > that has been change

Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-19 Thread has
Daniel Thorpe wrote: > Does anyone know if it's possible to access the star rating of a > photo from iPhoto using appscript? After looking in the iPhoto > dictionary and not seeng any reference to it, I have a feeling it > is not exposed through AppleScript. Nope. The ratings widget doesn't

Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-19 Thread Dethe Elza
On 19-Apr-07, at 2:13 AM, Simon Brunning wrote: > Err, that's iTunes. The OP wanted iPhoto. Oops. Sorry 'bout that. My bad. There are a couple of differences besides file names. All the images appear to have a default rating of 0 and images have Captions rather than Names. Also, rating g

Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-19 Thread Will Henney
Dethe Elza livingcode.org> writes: > library = plistlib.readPlist(os.path.expanduser('~/Pictures/ > iPhoto Library/AlbumData.xml')) > for photo in library['Master Image List'].values(): > if hasattr(photo, 'Rating') and photo.Rating > 0: > print '%s: %d stars' % (p

Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-19 Thread Ronald Oussoren
On 19 Apr, 2007, at 17:11, Will Henney wrote: Dethe Elza livingcode.org> writes: library = plistlib.readPlist(os.path.expanduser('~/Pictures/ iPhoto Library/AlbumData.xml')) for photo in library['Master Image List'].values(): if hasattr(photo, 'Rating') and photo.Rating > 0