Get foreground window 30% faster
Thanks micampe!
This commit is contained in:
parent
0578d19d06
commit
f4965eeac2
1 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue