dump_windows: off-by-1
Change-Id: Iaa6bd350cbc8b07016f7a73a267107431e173e93
This commit is contained in:
+2
-1
@@ -4,7 +4,8 @@
|
|||||||
roster | sed -n 's/)$//;s/^ *//;/[^64] (/s/ .*(/\t/p' | while read team app; do
|
roster | sed -n 's/)$//;s/^ *//;/[^64] (/s/ .*(/\t/p' | while read team app; do
|
||||||
echo "# team $team $app"
|
echo "# team $team $app"
|
||||||
c="$(hey "$team" count Window | grep result | cut -d" " -f 7)"
|
c="$(hey "$team" count Window | grep result | cut -d" " -f 7)"
|
||||||
for w in $(seq 1 "$c"); do
|
let c="$c - 1"
|
||||||
|
for w in $(seq 0 "$c"); do
|
||||||
title="$(hey "$team" get Title of Window "$w" | sed -n 's/"$//;/"result"/s/.*TYPE) : "//p')"
|
title="$(hey "$team" get Title of Window "$w" | sed -n 's/"$//;/"result"/s/.*TYPE) : "//p')"
|
||||||
frame="$(hey "$team" get Frame of Window "$w" | sed -n 's/)$//;/"result"/s/.*TYPE) : BRect(//p')"
|
frame="$(hey "$team" get Frame of Window "$w" | sed -n 's/)$//;/"result"/s/.*TYPE) : BRect(//p')"
|
||||||
echo "hey \"$app\" set Frame of Window \"$title\" to \"BRect($frame)\""
|
echo "hey \"$app\" set Frame of Window \"$title\" to \"BRect($frame)\""
|
||||||
|
|||||||
Reference in New Issue
Block a user