this question is similar to another problem i had with a creating a custom tool, in this case I'm trying to setup a couple tools to do Google searches of the selected items.
It works most of the time, however sometimes it will cause strange behaviour and i'm sure it has to do with the text strings containing weird characters.
It's the best I could come up with. However, for example if either field has an ampersand in it, the search will break down. Obviously I could create a rule to replace '&' with '%26' but there are other problems too (a couple that i can't remember right now, but sometimes the tool will cause two different tabs to open in Firefox)
is there no string function that formats in a URL encoded format?
any advice on a good way to do this would be appreciated!
on the suggestion of another member, I tried the code they were using for Google image searching:
NAME: Artwork - Artist/Album
PATH: C:\Program Files (x86)\Mozilla Firefox\firefox.exe
PARAMETER: http://www.google.ie/images?q=$replace($regexp(%artist% %album%,'\s*\[.*\].*',), ,+)&hl=en&biw=1236&bih=1372&tbs=isch:1,isz:lt,islt:svga&source=lnt&sa=X&ei=-u1wTZTpPMK1hAeb0qkx&ved=0CAoQpwUoBA
[ ] for all selected files
However, this search too doesn't work with ampersands in either the artist or album field.
Since I'm violently allergic to regular expressions, I'm wondering if anyone else has had any luck creating a bullet-proof script or tool for searching google using Mp3tag?
EDIT
Failing that try this, its a quick dirty fix but seeing as many songs dont have "&" in the title I just changed the search function around.
for all sizes
http://www.google.de/images?q="%title% %artist%"
for 800x600px or larger http://www.google.de/images?q="%title% %artist%"&hl=en&biw=1236&bih=1372&tbs=isch:1,isz:lt,islt:svga&source=lnt&sa=X&ei=-u1wTZTpPMK1hAeb0qkx&ved=0CAoQpwUoBA
and add the following to the end of the above code if you want to search 800x600px or larger images which is my workflow and then use irfan to resize all my images afterwards to 1000x1000.
&hl=en&biw=1236&bih=1372&tbs=isch:1,isz:lt,islt:svga&source=lnt&sa=X&ei=-u1wTZTpPMK1hAeb0qkx&ved=0CAoQpwUoBA
i like Pone's option of just stripping out '&' from the artist or title, because Google is still smart enough to know what i'm looking for even without the ampersand in the name.