Re: App switcher in OS 9
Re: App switcher in OS 9
- Subject: Re: App switcher in OS 9
- From: David Thorp <email@hidden>
- Date: Tue, 01 May 2001 14:33:56 +1000
Thanks to everyone who helped with this question. It now works like a
charm.
Cheers,
David.
------------------------------------------------------------------------
David Thorp email@hidden
------------------------------------------------------------------------
"The only stupid question is the one that is never asked, except maybe
'Don't you think it is about time you audited my return?' or 'Isn't it
morally wrong to give me a warning when, in fact, I was speeding?'"
------------------------------------------------------------------------
>
From: David Thorp <email@hidden>
>
Date: Mon, 30 Apr 2001 16:46:24 +1000
>
To: <email@hidden>
>
Subject: App switcher in OS 9
>
>
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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users