|
|
Accessing iTunes 4 cover art via AppleScript
|
|
|
|
Banned
Join Date: Sep 2000
Location: Fightclub
Status:
Offline
|
|
Anyone figured out how to do it yet?
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status:
Offline
|
|
I think this has been determined to be impossible. There is an entry in the dictionary for a class called "artwork" which contains information about a given artwork, but there is no corresponding property on the track class to allow access to the data.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status:
Offline
|
|
yeah i was messing around with it, is there any way to set the artwork through applescript? if there is a way to get applescript to set a tiff/jpg as artwork for a specified song then automating it to get album covers would be a hell of a lot easier!
revs
|
I free'd my mind... now it won't come back.
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status:
Offline
|
|
BTW, would be enternaly grateful to anyone that make a little app that will automatically get all the album covers
revs
|
I free'd my mind... now it won't come back.
|
|
|
|
|
|
|
|
Banned
Join Date: Sep 2000
Location: Fightclub
Status:
Offline
|
|
Originally posted by RevEvs:
BTW, would be enternaly grateful to anyone that make a little app that will automatically get all the album covers
revs
Synergy doesn't do a bad job of it. Plus it has some other great features. Works really well with iTunes 4, but I'm hoping the author can release something that will answer this question (I don't want to have to drag all of my covers in by hand; if I could find out how to do it with AppleScript then I could automate the process and use all the covers that Synergy has already downloaded for me!).
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status:
Offline
|
|
yeah i have synergy. but it is stilla pain to drag al these in by hand.
revs
|
I free'd my mind... now it won't come back.
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Feb 2001
Status:
Offline
|
|
There is a perl module MP3::Info that I am playing with - seems to access cover art. I have managed to extract the art, but not input art to an MP3 file yet. Haven't spent a lot of time on it yet though. Also - this would only apply to MP3's anyway - I suspect, so AAC is a whole other beast.
|
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: May 2001
Location: 127.0.0.1
Status:
Offline
|
|
I wonder if the new AppleScript GUI Scripting technology might be able to help with this task. I'm only a dabbler when it comes to AppleScript, but it seems like you may be able to have AppleScript tell iTunes to "Show Info" for a selected track, click on the "Artwork" tab, and paste an image (also fetched via AppleScript) into the provided area. It would probably be quite slow, but hey, at least it'd be fully automated.
Any scripters out there think this might be a workable approach?
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Feb 2001
Status:
Offline
|
|
I used to be really big on Applescript. Never a real programmer - but I dabbled and could hobble together little apps to suit my needs. Then I started messing with the Unix side of OS X - namely shell scripts, and after I wrote my first shell script it was all over for AS... the speed difference is no comparison. Now I have never programmed anything in my life, until I started messing around by myself on a Mac. Now I am teaching myself some perl, and its even more cool than shell scripting.
Also - I always looked at shell/perl scripts and thought "man that looks complicated" when actually I find out after using shell/perl scripts a bit - I can actually understand their language better than I ever did Applescript. Sure Applescript is user friendly, but I think sometimes that may be a detriment to it.
Long story short ... take a look at perl and shell scripting.....
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Apr 2002
Location: california
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: May 2003
Status:
Offline
|
|
tell application "iTunes"
data of artwork 1 of current track
end tell
seems to work ok, though I've had it crash the calling application a handful of times with certain images.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: May 2001
Location: Mnt View, CA
Status:
Offline
|
|
Here is a little variation to Paul's script (great first post btw).
Here is a script that copies artwork of current song to the clipboard.
Code:
tell application "iTunes"
set the clipboard to (data of artwork 1 of current track) as picture
end tell
And the other way, paste what you have on the clipboard to current song.
Code:
tell application "iTunes"
set (data of artwork 1 of current track) to the clipboard as picture
end tell
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|