#!/bin/bash

echo '
  activate application "Calendar"
  tell application "System Events" to keystroke "n" using command down
  tell application "System Events" to keystroke "'"$*"'"
  tell application "System Events" to keystroke return
' | osascript -
