This is the best way I can find to test if an application is running under appscript:

try:
    app('System Events').processes['AppName']()
except:
    print 'Application AppName is not running'

I think it’s kinda neat. I’d like to know of a better method, but I looked pretty hard!

Burn Down The Mission (Live)Elton JohnLive In Australia

  RSS Feed for Comments on this Post