From 9fad4c6847c6ff9f93332e859eec11de04b01cf1 Mon Sep 17 00:00:00 2001 From: matta adrien <matta@lpccaen.in2p3.fr> Date: Thu, 17 Nov 2016 11:10:48 +0100 Subject: [PATCH] * Adding safety to osas script for mac os user --- NPSimulation/ressources/scripts/bringtofront.osa | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/NPSimulation/ressources/scripts/bringtofront.osa b/NPSimulation/ressources/scripts/bringtofront.osa index f81cd0c76..7efe98271 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 -- GitLab