commit 10e3d7c2a69795f57509eb7e041fa6fd2d62e92e parent 53265ac1a32cecb33ce20aacffb308b5ebfbe202 Author: Anders Damsgaard <andersd@riseup.net> Date: Fri, 20 Oct 2017 07:44:46 -0400 add script to interface with Messages.app Diffstat:
A | links/bin/susan | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/links/bin/susan b/links/bin/susan @@ -0,0 +1,10 @@ +#!/bin/bash +msg="$@" +if [ $# -eq 0 ]; then + msg=`cat` +fi +to="Susan Louise Damsgaard Sonnesen" +#to="Anders Damsgaard" + +echo "$msg" +osascript -e 'tell application "Messages" to send "'"$msg"'" to buddy "'"$to"'"'