opening page in safari, input in apple script

so basically this is the story:
I want to start the applescript, a box appears saying what file you want?
I type in lets say “test 1”
I click ok,
it opens page:
ttp://www.google.ie/search?hl=en&q=intitle%3A%22index.of%22+test+1%28mp3%29+&btnG=Search&meta=

how do I do this,
thanks as always
(google url before the text input is: http://www.google.ie/search?hl=en&q=intitle%3A"index.of"+(mp3)+&btnG=Search&meta=)

Try something like this:

display dialog "Search for:" default answer ""

open location "http://www.google.com/search?q=intitle:index.of+mp3+" & encodeURL(text returned of result)

on encodeURL(someURL)
	return do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(unicode(sys.argv[1], \"utf8\"))' " & quoted form of someURL
end encodeURL

excellent thank you so much, but in the url, I need to put in +“mp3”+ what is the quote(") symbol in applescript?

If your using safari.

display dialog "Search for:" default answer ""

tell application "Safari"
	make new document with properties {URL:"http://www.google.com/search?q=intitle:index.of+\"mp3\"+" & (text returned of result)}
end tell

*edited to add your quotes

*edit 2
Noticed that the url you provided had “index.of”+(mp3)
Which gives different results to the script above.

script with that change

display dialog "Search for:" default answer ""

tell application "Safari"
	make new document with properties {URL:"http://www.google.com/search?q=intitle:\"index.of\"+(mp3)+" & (text returned of result)}
end tell