1
0
Fork 0

Get foreground window 30% faster

Thanks micampe!
pull/443/head
Alex Reece 12 years ago
parent 0578d19d06
commit f4965eeac2

@ -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

Loading…
Cancel
Save