|
|
@ -6,12 +6,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
case "$OSTYPE" in
|
|
|
|
case "$OSTYPE" in
|
|
|
|
(darwin*)
|
|
|
|
(darwin*)
|
|
|
|
osascript -e 'tell application "System Events" to ¬' \
|
|
|
|
osascript -e 'tell application (path to frontmost application as text) ¬' \
|
|
|
|
-e ' set focus_app_name to ¬' \
|
|
|
|
-e ' to get id of front window'
|
|
|
|
-e ' name of first application process ¬' \
|
|
|
|
|
|
|
|
-e ' whose frontmost is true' \
|
|
|
|
|
|
|
|
-e 'tell application focus_app_name to ¬' \
|
|
|
|
|
|
|
|
-e ' get id of front window'
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
(linux-gnu*)
|
|
|
|
(linux-gnu*)
|
|
|
|
# http://stackoverflow.com/a/8688624/447288
|
|
|
|
# http://stackoverflow.com/a/8688624/447288
|
|
|
|