Skip to content

Commit 66b175d

Browse files
authored
Update README.md
1 parent 59cde09 commit 66b175d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The pre-installed configuration contains less or more than you'll probably want,
130130
"source": {
131131
"filePath": "/Users/toxblh/Library/Application Support/MTMR/iTunes.nowPlaying.scpt",
132132
// or
133-
"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",
133+
"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",
134134
// or
135135
"base64": "StringInbase64"
136136
}
@@ -314,7 +314,7 @@ To close a group, use the button:
314314
```js
315315
"action": "appleScript",
316316
"actionAppleScript": {
317-
"inline": "tell application \"Finder\"\rmake new Finder window\rset target of front window to path to home folder as string\ractivate\rend tell"
317+
"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",
318318
// "filePath" or "base64" will work as well
319319
},
320320
```

0 commit comments

Comments
 (0)