Applescript Expected “”” but found unknown token


This is my code. I wanted to run an app (Game Capture HD) twice at the same time. But I get this Syntax Error: Expected “”” but found unknown token.
Appreciate if anyone can fix it

on run
    do shell script "open -n /Applications/Game Capture HD.app"
    tell application "Game Capture HD" to activate
end run

on open theFiles
    repeat with theFile in theFiles
        do shell script "open -na /Applications/Game Capture HD.app " & quote & (POSIX path of theFile) & quote
    end repeat
    tell application "Game Capture HD" to activate
end open