Hi,
I’ve been trying to get song data from musicbrainz.org for several days now but don’t know what to put in the AppleScript script. I’ve read this page several times with llinks and examples but don’t know much about this stuff:
http://www.musicbrainz.org/MM/#mm
I’m trying to get all the albums of an artist first. Does somebody have an example. Here’s my script:
property song_name : “Get Together”
property the_artist : “The Youngbloods”
property sort_name : “Youngbloods, The”
property the_album : “Get Together: The Essential Youngbloods”
property mm : "http://musicbrainz.org/mm/mm-2.1# "
property method_name : “HTTP GET”
---------- Artists
set the_parameters to {the_artist, sort_name, {the_album}}
tell application "http://musicbrainz.org/mm/mm-2.1# "
set the_result to call xmlrpc {method name:method name, parameters:the_parameters}
end tell
I think I got it all mixed up and probably it’s more complicated than this.
Edit: just saw a typo. {method name: method name …} should use the variable method_name but it still doesn’t work.
Thanks,