• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iTunes rejecting artwork, under certain circumstances
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Find all PowerPC Applications in Applications folder
  • Next by Date: Need a bit of help
  • Previous by thread: Re: csv to excel
  • Next by thread: Need a bit of help
  • Index(es):
    • Date
    • Thread