diff --git a/NPSimulation/ressources/scripts/bringtofront.osa b/NPSimulation/ressources/scripts/bringtofront.osa index f81cd0c7667ccb1bbc2583ca87ba9567d69e1145..7efe98271e9917f7b92c616a996ba0e6b6204444 100644 --- a/NPSimulation/ressources/scripts/bringtofront.osa +++ b/NPSimulation/ressources/scripts/bringtofront.osa @@ -1,5 +1,7 @@ tell application "Finder" - tell process "npsimulation" - set frontmost to true - end tell + if process "npsimulation" is running then + tell process "npsimulation" + set frontmost to true + end tell + end if end tell