Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create iTunes Music Store links with Applescript Apps
For almost a year, I have been trying to figure out how create a list of songs that will link to the iTunes Music Store. I modified a script already posted here such that it would take the selected songs in iTunes, create the HTML code to link the songs to the store, and then copy the list to the clipboard. Here's the modified AppleScript.

Select a number of songs in iTunes, run the script, and then all you have to do is paste the clipboard contents wherever you would like to use them.
    •    
  • Currently 2.00 / 5
  You rated: 2 / 5 (4 votes cast)
 
[6,102 views]  

Create iTunes Music Store links with Applescript | 8 comments | Create New Account
Click here to return to the 'Create iTunes Music Store links with Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create iTunes Music Store links with Applescript
Authored by: DizzyPenguin on Jun 15, '06 08:46:30AM

[Comment deleted at DizzyPenguin's request -- it was a misunderstanding between the hint's author and DizzyPenguin.]



[ Reply to This | # ]
Create iTunes Music Store links with Applescript
Authored by: DizzyPenguin on Jun 15, '06 09:31:06AM

[Comment deleted at DizzyPenguin's request -- it was a misunderstanding between the hint's author and DizzyPenguin.]



[ Reply to This | # ]
Create iTunes Music Store links with Applescript
Authored by: ever on Jun 15, '06 09:31:44AM

Good effort, but your code got geeklogged. (i.e. completely destroyed) :(



[ Reply to This | # ]
Create iTunes Music Store links with Applescript
Authored by: ever on Jun 15, '06 10:58:21AM

* Slight misunderstanding there. Geeklog coded that correctly, but there was a mix-up about HTML/HTTP we sorted off-board. Cheers.



[ Reply to This | # ]
Create iTunes Music Store links with Applescript
Authored by: ever on Jun 15, '06 09:29:37AM
Here's yet another re-write. This version properly encodes spaces and exotic characters in the URL. I also substituted the more precise iTMS linking method used by iChat. Instead of just doing a basic search, it attempts to highlight the song directly in the correct album-view context. As far as I know this new linking format has not been seen on the internet, I stumbled on it while debugging iChat's interapplication events. Unfortunately Geeklog is horribly mangling my code and apparently has disabled the trusty AppleScript URI protocol, so here's the script on my homepage...

http://web.mac.com/mike.com/itunes.html

[ Reply to This | # ]
only works on non-Music Store selection
Authored by: Krioni on Jun 15, '06 10:59:07AM

Just a quick note for those who may try - this doesn't work in the Music Store itself. In other words, you can't run this successfully by selecting a song IN the store - you have to select a song that is outside the store and this will create a link to look for that song in the store.


I suppose you could drag the preview into a local playlist, select it there, and then run it.

---
--
http://www.danshockley.com



[ Reply to This | # ]
only works on non-Music Store selection
Authored by: ever on Jun 15, '06 11:09:03AM
> I suppose you could drag the preview into a local playlist, select it there, and then run it.
Great idea, that works!

[ Reply to This | # ]
Create iTunes Music Store links with Applescript
Authored by: DizzyPenguin on Jun 15, '06 11:00:17AM

PLEASE disregard my two posts at the top. I was looking at the original submitted script in a total different angle and missed the obvious.
Sincere apologies.

---
Manage your iTunes Album Artwork > http://dizzypenguin.com/automac-it/



[ Reply to This | # ]