PDA

View Full Version : [Applescript] Get automatically the picture of google to the artwork of the track


aadil93
06-26-2008, 07:59 AM
Hello,

I'm actually searching desperatly a script which be able to catch the first picture of a google image research (artist, album) to place it on the "artwork" of the current track.

I've done some researches, but i don't get anything like that. If someone has a script like this, let me know! The only things i've found are two scripts.

The first one : run a request on google image with the artist's and album's names. (available here http://dougscripts.com/itunes/scripts/ss.php?sp=findalbumartwork ). It's usefull, but you have to grab it manually in order to change the artwork, on your own.

The second one is probably available on the same website, and its get a picture from the disk, or from another track to the current one.


I've thought about that, I think the better solution would be a script that checks the google image page's code and search into it for the word "dyn.Img", which is the beacon of the begenning of the first picture characteristics's.
You can check it yourself, its written :

dyn.Img("url of the page that contains the image","","unknown parameter...","Url of the picture","103","89"...... etc etc )

Then, it has to extract the url of the picture to save it on the disk.

Why the first picture of the page ? Just because it's often the right one! With an artist and album research, plus the options already implemented on the first script (search only large pictures, or only the ones from "amazon.com" etc etc) we get a high probability of having the good one in first position. And even if it's not the case, if someone know how to do this, it will only be a compare problem then.

I don't know if I was clear, but, with the both actual scripts and the new one, just with one click we will see our artworks fullfilled, save the life of many people and stop the world war.

Is there a super hero ?

aadil93
06-26-2008, 10:18 AM
The answer is : "Amazon Album Art Widget"
No need to write any script...