# Created by Nando Vieira # http://simplesideias.com.br on isRunning(appName) tell application "System Events" set isAppRunning to (name of processes) contains appName return isAppRunning end tell end isRunning