Applescript function to check if an app application is running or not


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. -- function appIsRunning() by sebastien.wains - Google Project Hosting http://bit.ly/gb43CT - from SampleAppleScripts - reduxcomputing-proximity - http://bit.ly/fCoJxY
  2. on appIsRunning(appName)
  3. tell application "System Events" to (name of processes) contains appName
  4. end appIsRunning
  5.  
  6. -- USAGE: if appIsRunning("Finder") then...

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.