[Pythonmac-SIG] Any appscript / iTunes experts out there?
MattPat at mattpat.net
Tue Mar 4 19:32:22 CET 2008
> Anyone know how to add artwork to a file??
I just did something like this myself a few days ago. :) A quick
snippet from my script:
iTunes = app('iTunes')
artworksForTrack = iTunes.current_track.artworks.get()
artwork = artworksForTrack.get()
dataString = artwork.data.get().data
# Assume fname is your file name
f = open(fname, 'wb')
# When we write, we chop off the first 221 bytes to get rid of the
Hope it helps!
Matt Patenaude, Developer for OS X and the Web
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pythonmac-SIG