From 180bbc7b38f814ff506bb25091a908f02ba32b5c Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Wed, 12 Feb 2020 20:12:34 -0500 Subject: Add -N flag for notifications --- scripts/notify-send.scpt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/notify-send.scpt (limited to 'scripts') diff --git a/scripts/notify-send.scpt b/scripts/notify-send.scpt new file mode 100644 index 0000000..5630440 --- /dev/null +++ b/scripts/notify-send.scpt @@ -0,0 +1,9 @@ +#!/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 -- cgit 1.4.1-2-gfad0