iTMS Link-maker

GO TO ADMIN PANEL > ADD-ONS AND INSTALL VERTIFORO SIDEBAR TO SEE FORUMS AND SIDEBAR

eustacescrubb

New member
Joined
Jan 18, 2002
Messages
2,284
Points
0
Age
49
Website
www.johnpauldavis.org
This is beyond my ken, but I was wondering if any scripters out there had any idea on how to automate linking to songs in the ITMS? I'm sure that someone clever enough scripting Safari could pull it off; Apple's provided all the backend with the iTunes Music Store Link-Maker, and the url structure for a query is simple:

Code:
[SIZE=1] [url]http://phobos.apple.com/WebObjects/MZSearch.woa/193/wa/com.apple.jingle.search.DirectAction/itmsLinkHits?[/url]
songTerm=[i]song+title[/i]&albumTerm=[i]album+title[/i]&artistTerm=[i]artist+name[/i][/SIZE]
... where the "+" symbols take the place of whitespace. The problem is the page that gets generated.

This is the meat of what one would need to get to the next step:

Code:
[SIZE=1]<TR height="20" bgColor="#ffffff">
<TD WIDTH="236" HEIGHT="20">
<FONT SIZE="1" FACE="Helvetica,Arial,Geneva,Swiss,SunSans-Regular">   Clocks
</FONT>
</TD>
         <TD WIDTH="17" HEIGHT="20">
<a href="/WebObjects/MZSearch.woa/193/wa/com.apple.jingle.search.DirectAction/pickITMSLink?songName=Clocks&searchType=1&artistName=Coldplay&[b]plid=684888&id=684859[/b]
&playlistName=A+Rush+of+Blood+to+the+Head">[/SIZE]

What needs to happen is the page needs to be search for that content, and then the stuff in bold needs to be put into a url with this structure:

Code:
[SIZE=1]itms://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/193/wa/
viewAlbum?selectedItemId=684859&playListId=684888[/SIZE]
Not hard theoretically, but I have no clue on how to pull info from an HTML page with AppleScript.
 
Last edited:
Joined
Jul 1, 2003
Messages
705
Points
0
Location
Providence, RI, USA
Website
dougscripts.com
Gimme An iTMS Search String! creates a link based on your choice of title, artist, album, and composer. However, it is not the same as Link Maker because that uses info from the ITMS that users can't get at...namely the artistID.

Also, when posting code, please try to use breaks and the [SIZE] tage to keep the page from expanding (c'mon, e!) :)
 
Top