Scripting "Google Hack" searches - Page Not Loading

I’m trying to write a small AppleScript app to allow me to easily access some frequent “Google Hack” searches, but seem to be hitting a brick wall.

Here is what I have so far:

set search to text returned of (display dialog "Enter Search Query:" default answer "" buttons {"Search", "Cancel"} default button "Search")
#open location "|html|php) intitle:\"index of" +\"last modified" +\"parent directory" +description +size +(mp3)" & search
#open location "" & search & "&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a"

(PLEASE NOTE: the hashes only appear above because I’ve been bouncing between tweaking the two options to see if I can get the first to work. I’m aware that commented code will not run. Please remove the hash from the option you would like to use/try)

If you use the first search option, nothing loads.

If you use the second, it works fine.

I can only guess that I’m not escaping the quotes correctly somehow, but haven’t been able to run down the problem as yet.

Cany anyone advise?