(no subject)
(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