#!/bin/csh -f # Open the specified files in the Firefox browser. # -n = New instance of the browser, even if another instance is already open. # -W = Wait till browser exits before proceeding. # -a = Application to open # :q = Quote each incoming arg in case it contains embedded spaces and such. #(set echo; open -n -W -a '/Applications/Firefox.app' --args $*:q) open -n -W -a '/Applications/Firefox.app' --args $*:q #?? Alternative approach, if ever needed for Mac. #(set echo; /Applications/Firefox.app/Contents/MacOS/firefox-bin $*:q) ## But the above causes lots of errors to be echoed to stdout, like: ## ## 2021-05-31 12:25:26.491 firefox-bin[89735:503168] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation. ## 2021-05-31 12:25:26.491 firefox-bin[89735:503168] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation. ## 2021-05-31 12:25:26.492 firefox-bin[89735:503168] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation. ## 2021-05-31 12:25:26.492 firefox-bin[89735:503168] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation. ## 2021-05-31 12:25:26.493 firefox-bin[89735:503168] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation. ## 2021-05-31 12:25:26.493 firefox-bin[89735:503168] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation. ## 2021-05-31 12:25:26.494 firefox-bin[89735:503168] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.