From 44b8313213178da0bac9ffa07f0c3a5eb7bf9959 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 2 Aug 2016 15:00:36 +0100 Subject: [PATCH] Make AppleScript call more bulletproof and silence its output Fixes #322 --- scripts/start.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/start.js b/scripts/start.js index c93754df3b0..b5fa51d1467 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -136,9 +136,8 @@ function openBrowser(port) { // on OS X Google Chrome with AppleScript execSync('ps cax | grep "Google Chrome"'); execSync( - 'osascript ' + - path.resolve(__dirname, './utils/chrome.applescript') + - ' http://localhost:' + port + '/' + 'osascript chrome.applescript http://localhost:' + port + '/', + {cwd: path.join(__dirname, 'utils'), stdio: 'ignore'} ); return; } catch (err) {