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

2007-04-18 Thread Dethe Elza
Following up on my earlier reply, here is a script to print out all the star ratings: import plistlib, os tunes = plistlib.readPlist(os.path.expanduser('/~/Music/iTunes/iTunes Music Library.xml')) for track in tunes.Tracks.values(): if hasattr(track, 'Rating'): print '%s: %d star

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

2007-04-18 Thread Dethe Elza
On 18-Apr-07, at 2:14 PM, Daniel Thorpe wrote: > Hi everyone... > > 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 AppleSc

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

2007-04-18 Thread Daniel Thorpe
Hi everyone... 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. If anyone has found a way to get the number of