[Pythonmac-SIG] Announce: OSATools
Daniel Lord
dmlsj@yahoo.com
Wed, 4 Dec 2002 13:30:57 -0800
All,
Script Debugger, a commercial application, has an Os X working version=20=
of somethign similar to AE Capture. See my script with listing of it's=20=
results below. Granted it costs money though ;-)
On Wednesday, Dec 4, 2002, at 04:03 US/Pacific, Bill Bedford wrote:
> This is a bit difficult at the moment since the 'get' and 'set' events
> are not exposed. What wee could do with is an OSX version of 'Capture
> AE' to help build our own events.
>
(*
Arrange Terminal.app windows
For some weird reason the Finder orders the Windows from yougest =
to=20
oldest
whle the Terminal.app numbers them from oldest to youngest which=20=
results
in the arragement being backwards. Annoying but tolerable. So we =
count
down the list to circumvent the ordering method collision.
=09
2002 Daniel Lord daniellordATtelocityDOTcom
*)
set h to 600
set w to 700
set x to 10
set y to 30
set xDelta to 20
set yDelta to 20
tell application "Terminal"
set i to count of windows
repeat while (i > 0)
set size of window i to {w, h}
set position of window i to {x, y}
set x to xDelta + x
set y to yDelta + y
set i to i - 1
end repeat
end tell
(*
Script =93ArrangeWindows=94 started
ascr\tell{ ----:psn ($0000000000E60001$) }=00
core\cnte{ kocl:'cwin', ----:'null'(), &subj:'null'(), =
&csig:65536 }=00
--> 5=00
core\setd{ data:[ 700, 600 ], ----:obj { form:'prop', =
want:'prop',=20
seld:'psiz', from:obj { form:'indx', want:'cwin', seld:5, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 10, 30 ], ----:obj { form:'prop', want:'prop',=20=
seld:'ppos', from:obj { form:'indx', want:'cwin', seld:5, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 700, 600 ], ----:obj { form:'prop', =
want:'prop',=20
seld:'psiz', from:obj { form:'indx', want:'cwin', seld:4, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 30, 50 ], ----:obj { form:'prop', want:'prop',=20=
seld:'ppos', from:obj { form:'indx', want:'cwin', seld:4, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 700, 600 ], ----:obj { form:'prop', =
want:'prop',=20
seld:'psiz', from:obj { form:'indx', want:'cwin', seld:3, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 50, 70 ], ----:obj { form:'prop', want:'prop',=20=
seld:'ppos', from:obj { form:'indx', want:'cwin', seld:3, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 700, 600 ], ----:obj { form:'prop', =
want:'prop',=20
seld:'psiz', from:obj { form:'indx', want:'cwin', seld:2, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 70, 90 ], ----:obj { form:'prop', want:'prop',=20=
seld:'ppos', from:obj { form:'indx', want:'cwin', seld:2, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 700, 600 ], ----:obj { form:'prop', =
want:'prop',=20
seld:'psiz', from:obj { form:'indx', want:'cwin', seld:1, from:'null'()=20=
} }, &csig:65536 }=00
core\setd{ data:[ 90, 110 ], ----:obj { form:'prop', =
want:'prop',=20
seld:'ppos', from:obj { form:'indx', want:'cwin', seld:1, from:'null'()=20=
} }, &csig:65536 }=00
ascr\tend{ }=00
Script =93ArrangeWindows=94 finished
*)