Question

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?

Cheers.

Was it helpful?

Solution

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

or

    tell application "Terminal"
    activate
    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

OTHER TIPS

The return function should work.

    set stringYouWantToReturn to "banana"
return stringYouWantToReturn
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top