AppleScript from Eggplant Commandline Tool


I want to run a small AppleScript in Eggplant Controller Machine. And its running Successfully when we run it from Eggplant GUI,but the same is not running when Eggplant is launched from command line.
Is there any restriction for Eggplant that , applescript blocks can’t be run, when Eggplant is Triggered from command line?

do AppleScript merge of {{

tell application “Terminal”
do script ls
do script “exit”
end tell

Is this the actual AppleScript that you want to run? If so, there are at least two easier ways of accomplishing the same thing:

put shell("ls")
put the files

If this is just a general problem with AppleScript that you’re trying to solve, let us know.