Here's a way to have Safari search the iTunes music store.
Let's say, for example, you're over at Yahoo, checking out the entertainment news section, you come across the name of a song in one of the articles and you want to check to see if iTunes has it. Do you open up iTunes, go over to the music store, type in the name of the song and start searching? No...
All you need to do is highlight the song name in the article, select "search for song" from your Safari bookmarks, and automagically, iTunes will open (if it isn't already open), go to the music store, search for the song, bring iTunes to the front and present the results. You can do this for any song name, artist name, album name, or composer name when your browsing around the net in Safari.
Here's how to set it up: First, go to the "show all bookmarks" browser portion of Safari and create a new bookmark folder. Call it "iTunes Search" or "AppleMusic" or whatever you want. Put the empty folder in the bookmarks toolbar, underneath the address bar (or wherever you want it, it's just convenient to have it there right in the front).
Next copy and paste the following javascript, one at a time, into the address bar of Safari
Search for Song
copy and paste this into the address bar...
javascript:x=escape(getSelection());window.location='itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?songTerm='+x;
Search for Album
copy and paste this into the address bar...
javascript:x=escape(getSelection());window.location='itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?songTerm=&nonameSubmitButton=submit&composerTerm=&albumTerm='+x;
Search for Composer
copy and paste this into the address bar...
javascript:x=escape(getSelection());window.location='itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?songTerm=&nonameSubmitButton=submit&composerTerm='+x;
Search for Artist
copy and paste this into the address bar...
javascript:x=escape(getSelection());window.location='itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?songTerm=&nonameSubmitButton=submit&artistTerm='+x;
Each music catagory (song, artist, album, composer) must be "bookmaked" separately, as if each were a different site on the internet. Once you copy and paste the javascript into the address bar, make sure it is highlighted and select "Add Bookmark" from the Bookmark menu. In the dialog, type a name of the javascript ("Search for song" as an example) in the name field and click the pop-up menu to navigate to the folder you created earlier (i.e., "iTunes Search") then click add.
Rinse and repeat for all or some of the others, whatever you like, and you're ready to rock.