open url from text file

I would like to do something along the lines of this old post -

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 & “” “” & 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 -

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


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 …