error -1708

Hi

I’m Just getting started in AS and I have a Very simple little app that is a button in a main window and this script

on clicked
tell application “Terminal”
activate
do script “pinger_script”
end tell

end clicked

When I click on the button the script works but when I launch the application I get

Apple Script Error -17708

I must be doing something wrong!

TIA

Steve

There is no more code in your script? Then, perhaps the error is in the result returned by the Terminal after a failed execution of “do script”? As long as I know, to execute ok that script, you must have a executable shell script called “pinger_script” within the current directory (if none, my default directory is “~/”).
When executed from a script editor, it returns several empty paragraphs as result. Perhaps an AStudio app receives this as an execution error…