From 59cde098f2bcbf155cd242be8fa4a7a777d17cb1 Mon Sep 17 00:00:00 2001 From: Giovanni Tataranni Date: Sun, 6 Oct 2019 10:52:21 +0200 Subject: [PATCH] Update Finder.scpt Bring to front existing window, or create new one --- MTMR/AppleScripts/Finder.scpt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MTMR/AppleScripts/Finder.scpt b/MTMR/AppleScripts/Finder.scpt index 41f97b5..fc8d3b3 100644 --- a/MTMR/AppleScripts/Finder.scpt +++ b/MTMR/AppleScripts/Finder.scpt @@ -1,5 +1,7 @@ tell application "Finder" - make new Finder window - set target of front window to path to home folder as string + if not (exists window 1) then + make new Finder window + set target of front window to path to home folder as string + end if activate end tell