From 512b2880e283c38095954db422531ad81da4dc9e Mon Sep 17 00:00:00 2001 From: Peng Li Date: Wed, 26 Aug 2015 10:01:07 +0800 Subject: [PATCH] quicksilver, add apple script hotkey for quicksivler to hide/show emacs --- scripts/emacs_toggle.applescript | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/emacs_toggle.applescript diff --git a/scripts/emacs_toggle.applescript b/scripts/emacs_toggle.applescript new file mode 100644 index 0000000..d3bbe3b --- /dev/null +++ b/scripts/emacs_toggle.applescript @@ -0,0 +1,10 @@ +tell application "System Events" + tell application process "Emacs" + if visible then + set visible to false + else + set visible to true + tell application "Emacs" to activate + end if + end tell +end tell -- 2.11.0