#!/bin/sh

if [ "$#" -eq 0 ]; then
  /Applications/CotEditor.app/Contents/SharedSupport/bin/cot --background --new
else
  open -g -a "/Applications/CotEditor.app" "${*:-}"
fi
