open url from text file

I would like to do something along the lines of this old post - http://macscripter.net/viewtopic.php?id=10546

But when trying to compile, I get the error Expected end of line, etc. but found “”" from this line:
set theCode to do shell script “curl -A “” & theBrowser & “” “http://www.google.com/search?q=” & theSearchTerm & “””

With the second " of A “” being highlighted?

I’d like to take how that post pulled in the text with it coming from a file that the user selects and then passes it to firefox browser opening each line in new tab and then being able to record results

Here’s what I have working so far:
In my txt file i have lines like - http://www.google.com/#hl=en&gs_nf=1&cp=9&gs_id=83&xhr=t&q=macscripter

set locations to paragraphs of (read (choose file with prompt "Pick text file containing urls"))
tell application "Firefox"
	activate
	repeat with a in locations
		do shell script "open -a Firefox" & space & quoted form of a
	end repeat
end tell

Thanks

AppleScript: 2.2.1
Browser: Firefox 14.0.1
Operating System: Mac OS X (10.7)

Seems similar to the thread below in which the user was trying to game Google’s page rank system …

https://discussions.apple.com/thread/4119190