possible to check if an application is open with AppleScript?

Discussion in 'Mac Programming' started by mjdth, Jan 22, 2006.

  1. macrumors newbie

    Joined:
    Jan 22, 2006
    #1
    Is it possible with applescript to check if the iCal application is running?

    Thanks
     
  2. macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #2
    tell application "System Events" to set iCalIsRunning to (name of processes) contains "iCal"

    iCalIsRunning will end up with true or false as appropriate.
     

Share This Page