Skip to content

Commit 75e27ea

Browse files
committed
Make AppleScript call more bulletproof and silence its output
Fixes #322
1 parent 2012677 commit 75e27ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/start.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ function openBrowser(port) {
136136
// on OS X Google Chrome with AppleScript
137137
execSync('ps cax | grep "Google Chrome"');
138138
execSync(
139-
'osascript ' +
140-
path.resolve(__dirname, './utils/chrome.applescript') +
141-
' http://localhost:' + port + '/'
139+
'osascript chrome.applescript http://localhost:' + port + '/',
140+
{cwd: path.join(__dirname, 'utils'), stdio: 'ignore'}
142141
);
143142
return;
144143
} catch (err) {

0 commit comments

Comments
 (0)