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
(darwin*)
osascript -e 'tell application "System Events" to ¬' \
-e ' set focus_app_name to ¬' \
-e ' name of first application process ¬' \
-e ' whose frontmost is true' \
-e 'tell application focus_app_name to ¬' \
-e ' get id of front window'
osascript -e 'tell application (path to frontmost application as text) ¬' \
-e ' to get id of front window'
;;
(linux-gnu*)
# http://stackoverflow.com/a/8688624/447288

Loading…
Cancel
Save