From 66b175d5badc4dde1c206cc8760b2399d732aa5c Mon Sep 17 00:00:00 2001 From: Giovanni Tataranni Date: Sun, 6 Oct 2019 10:54:17 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a0b73a2..c895537 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ The pre-installed configuration contains less or more than you'll probably want, "source": { "filePath": "/Users/toxblh/Library/Application Support/MTMR/iTunes.nowPlaying.scpt", // or - "inline": "tell application \"Finder\"\rif exists window 1 then\ractivate\relse\rmake new Finder window\rset target of front window to path to home folder as string\ractivate\rend if\rend tell", + "inline": "tell application \"Finder\"\rif not (exists window 1) then\rmake new Finder window\rset target of front window to path to home folder as string\rend if\ractivate\rend tell", // or "base64": "StringInbase64" } @@ -314,7 +314,7 @@ To close a group, use the button: ```js "action": "appleScript", "actionAppleScript": { - "inline": "tell application \"Finder\"\rmake new Finder window\rset target of front window to path to home folder as string\ractivate\rend tell" + "inline": "tell application \"Finder\"\rif not (exists window 1) then\rmake new Finder window\rset target of front window to path to home folder as string\rend if\ractivate\rend tell", // "filePath" or "base64" will work as well }, ```