Syntax error on compiling

I am running the following on Applescript and it is giving me a syntax error… has anyone any suggestions on why it is doing this… (it is running fine via uTest)

set scriptString to “/AppleInternal/Applications/uTest/Sample Scripts/FindTextAndImages.ut”
set targetList to {“localhost”}
set myresults to do script scriptString with targets targetList

on running the following error is displayed:


Expected end of line, etc. but found “script”

Most probably you need enclose all your code within a “tell block” (so the compiler can guess which words are keywords owned by the target app, uTest). Eg:

tell app "uTest"
     --> xxxxxxx
end tell