so I'm totally new to applescript..
basically I want my applescript.app to run a shell script then exit
do shell script "/usr/local/groovy/bin/groovyConsole"
the above script opens groovyConsole just fine, but my applescript.app is still running - I want it to close itself after it runs the shell script....
any help would be great!
openis very different, true. I just don't see what's wrong with Trevor's answer. – Daniel Beck Mar 13 '11 at 05:16do shell script "sleep 5 &"always takes 5 seconds to return, butdo shell script "sleep 5 >/dev/null 2>&1 &"always returns as quickly as possible. The shell exits and sleep runs in the background in both cases; however, in the first case, sleep has inherited the fds against which do shell script is waiting. Trevor’s answer may work, but it depends on the behavior of groovyConsole. – Chris Johnsen Mar 13 '11 at 06:17