Geektool and returning Applescript

I have an Applescript script that is set to repeat every 10 seconds with Geektool.

I have returns at the end of each handler that let me know what's going on, but that affords me little chance to see mid-script what exactly is happening.

So what I'm asking is if there's a command in Applescript like return but will not halt the script?



display dialog "This is what's going on" giving up after 1


    tell application "Terminal"
    set xxx to "This is what's going on"
    do script "echo " & quoted form of xxx in window 1
    delay 2
    do script "echo " & quoted form of xxx in window 1
end tell

The return function should work.

    set stringYouWantToReturn to "banana"
return stringYouWantToReturn

Need Your Help

"vector iterator not incrementable" with OpenGL, LeapMotion application

c++ opengl vector leap-motion

I've successfully written code that takes the (x,y) position of one of my fingers measured by my Leap Motion controller (infrared scanning device that tracks finger and hand movements), and draws a...

returning users count more than expected

php jquery json underscore.js

I am returning rows from a database table which I am serializing to json so as to display the results by making an ajax call.