eustacescrubb
New member
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:
... 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:
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:
Not hard theoretically, but I have no clue on how to pull info from an HTML page with AppleScript.
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]
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]
Last edited: