catgirl/scripts/notify-send.scpt

10 lines
192 B
AppleScript

#!/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