Skip to content

Commit

Permalink
Make AppleScript call more bulletproof and silence its output
Browse files Browse the repository at this point in the history
Fixes #322
  • Loading branch information
gaearon committed Aug 2, 2016
1 parent fa38991 commit 44b8313
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 44b8313

Please sign in to comment.