kenban nikki    archives   tags   

Open files with DrawBot from the terminal

2020-04-13

A simple trick to open files with DrawBot from your terminal.

open [filename].py -a DrawBot

As always, a function in *rc (in my case .bashrc) would be very handy.

function drawbot() {
  for f in "$@"; do
    if [ ! -e "$f" ]; then
      touch "$f"
    fi
    open "$f" -a DrawBot
  done
}