#!/bin/bash
# BizCEO for Mac: opens BizCEO (bizceo.seattlelisted.workers.dev) in its own app window
# using Chrome, Edge or Brave if you have one, otherwise in Safari.
URL="https://bizceo.seattlelisted.workers.dev/app"
for APP in "Google Chrome" "Microsoft Edge" "Brave Browser"; do
  if open -Ra "$APP" >/dev/null 2>&1; then
    open -na "$APP" --args --app="$URL"
    exit 0
  fi
done
open "$URL"
