iTunes rejecting artwork, under certain circumstances
iTunes rejecting artwork, under certain circumstances
- Subject: iTunes rejecting artwork, under certain circumstances
- From: James Downie <email@hidden>
- Date: Fri, 08 Apr 2011 22:59:39 +1000
iTunes does a strange thing when I try to set artwork with Applescript.
If there is already an image set against it, then the example code provided works fine.
If there is no image set against the movie (and the generic thumbnail is what appears in iTunes), then this script just triggers a quick flicker in iTunes before reverting back. Can anyone tell me why iTunes and/or it's scripting interface is behaving this way?
James
tell application "iTunes"
set iTunesSelection to selection
set firstSelectedMovie to first item of iTunesSelection
set filename to ((POSIX file (do shell script "ls ~/Desktop/test.png")) as alias)
set imageData to (read filename as picture)
set data of first artwork of firstSelectedMovie to imageData
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden