App switcher in OS 9
App switcher in OS 9
- Subject: App switcher in OS 9
- From: David Thorp <email@hidden>
- Date: Mon, 30 Apr 2001 16:46:24 +1000
Hi all,
Please help... here's my script so far:
tell application "Application Switcher"
set icon size of palette to small
set frame visible of palette to false
set visible of palette to true
set position of palette to lower left
get position of palette
end tell
The result is two numbers separated by a comma and all that in curly
brackets. Eg's:
The result on my cinema display is {1,999}
The result on my powerbook G3 (firewire) is {1, 743}.
In other words the result is {1, (screen height - 25)}. That's all fine...
What I then want to do is get those two number separately. How do you
reference separate items in a list like this? I thought that to get them I
would then just type:
set x to item 1 of (position of palette)
set y to item 2 of (position of palette)
But it won't let me get the separate items.
Even if I try:
set x to item 1 of {1,999}
set y to item 2 of {1,999}
It gives me error messages.
I'm obviously missing something and I'm sure I'll kick myself when someone
tells me what it is.
Please help.
Thanks,
David Thorp,
Sydney, Australia