Skip to content

Instantly share code, notes, and snippets.

@alexy
Forked from hiredman/growl.clj
Created March 19, 2010 00:41
Show Gist options
  • Save alexy/337100 to your computer and use it in GitHub Desktop.
Save alexy/337100 to your computer and use it in GitHub Desktop.
(defn process-args [m]
(mapcat (fn [[flag value]] [(format "--%s" (name flag)) value]) m))
(defn growl [m]
(-> (Runtime/getRuntime)
(.exec
(into-array
String
(cons "/usr/local/bin/growlnotify" (process-args m))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment