projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ec6f145
)
quicksilver, add apple script hotkey for quicksivler to hide/show emacs
author
Peng Li
<seudut@gmail.com>
Wed, 26 Aug 2015 02:01:07 +0000
(10:01 +0800)
committer
Peng Li
<seudut@gmail.com>
Wed, 26 Aug 2015 02:01:07 +0000
(10:01 +0800)
scripts/emacs_toggle.applescript
[new file with mode: 0644]
patch
|
blob
diff --git a/scripts/emacs_toggle.applescript
b/scripts/emacs_toggle.applescript
new file mode 100644
(file)
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