Tuesday, January 23, 2018

#1 2003-02-26 10:32:20 pm

Steve Abrahall
Member
From:: Sydney Australia
Registered: 2003-02-27
Posts: 1

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


Filed under: terminal

Offline

 

#2 2003-02-27 02:20:40 am

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Re: error -1708

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...

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)