#!/usr/bin/osascript on run argv if count of argv is 2 then display notification (item 2 of argv) with title (item 1 of argv) else display notification (item 1 of argv) end if end run