summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-12 20:12:34 -0500
committerJune McEnroe <june@causal.agency>2020-02-12 20:12:34 -0500
commit180bbc7b38f814ff506bb25091a908f02ba32b5c (patch)
tree423b6fddd7fc39667ea6be4eed13665b034fc833 /scripts
parentMark and unmark on uiHide, uiShow (diff)
downloadcatgirl-180bbc7b38f814ff506bb25091a908f02ba32b5c.tar.gz
catgirl-180bbc7b38f814ff506bb25091a908f02ba32b5c.zip
Add -N flag for notifications
Diffstat (limited to '')
-rw-r--r--scripts/notify-send.scpt9
1 files changed, 9 insertions, 0 deletions
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