if Application exists applescript

Discussion in 'Mac Programming' started by epls, Jan 7, 2011.

  1. epls macrumors newbie

    Joined:
    Jan 7, 2011
    #1
    In applescript, is there a way to say if an application exists do this, if it doesn't then do something else?
     
  2. andy 111r macrumors newbie

    andy 111r

    Joined:
    Nov 13, 2010
    Location:
    leeds
    #2
    Yes if I understand your question correctly simply:

    try
    if exists application "FileMaker Pro Advanced" then
    -- do this stuff
    beep 5
    else
    -- do something else
    end if
    end try
     
  3. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    How critical is accuracy?

    What if the app exists but in an unconventional location or renamed by the user?

    What if the app doesn't exist, but the means of finding out wrongly says it does?
     
  4. epls thread starter macrumors newbie

    Joined:
    Jan 7, 2011
    #4
    thank you andy111r, that looks like it should work, and chown33, accuracy is not that important
     

Share This Page