From: Peng Li Date: Wed, 26 Aug 2015 02:01:07 +0000 (+0800) Subject: quicksilver, add apple script hotkey for quicksivler to hide/show emacs X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=512b2880e283c38095954db422531ad81da4dc9e;hp=ec6f14547fb4732583776d81a30ec9d498624724;p=dotfiles.git quicksilver, add apple script hotkey for quicksivler to hide/show emacs --- 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