• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: Simone Manganelli <email@hidden>
  • Date: Fri, 13 May 2005 23:08:55 -0700

Anyone know a reliable way of setting the artwork for a song in iTunes through AppleScript? Here's how I GET the artwork through iTunes:

code:

tell application "iTunes"
        set the_artwork to data of artwork 1 of current track
end tell




But when I try to do the analogous setting of the artwork through AppleScript like this:


code:

tell application "iTunes"
set the_artwork to read POSIX file "/UNIX/PATH/TO/FILE" as picture
set data of artwork 1 of current track to the_artwork
end tell




... all that happens is iTunes crashes and I get a "parameter" error. Can anyone tell me how to modify my script so that it works? Any help at all would be greatly appreciated. I also tried reading the file as a "JPEG picture" (since the iTMS artwork seems to always be of this format), and instead of getting a parameter error, I get an error of -116.

(Just in case it matters, I'm using iTunes 4.8 on Mac OS X 10.4 Tiger.)

I've been fiddling around for a few days, and haven't gotten anywhere.

-- Simone
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Tiger error with meta-info
  • Next by Date: Re: Folder Action Script: Detect a certain Volume in /Volumes
  • Previous by thread: Re: Shut down now
  • Next by thread: XMLRPC Apple Event --- Sending base64 data
  • Index(es):
    • Date
    • Thread