Re: App switcher in OS 9
Re: App switcher in OS 9
- Subject: Re: App switcher in OS 9
- From: Michelle Steiner <email@hidden>
- Date: Mon, 30 Apr 2001 09:34:53 -0700
On 4/30/01 9:19 AM, Arthur J Knapp <email@hidden> wrote:
>
I know from my brief QuarkXPress scripting days that sometimes
>
a list isn't actually a list. Try an explicit coercion:
>
>
set x to item 1 of ((position of palette) as list)
>
set y to item 2 of ((position of palette) as list)
That works with Application Switcher as well.
Here's something interesting along those lines:
tell application "Application Switcher"
get class of position of palette
end
--> Application Switcher got an error: Can't make some data into the
expected type.
tell application "Application Switcher"
set x to (position of palette)
class of x
end tell
--> list
However, the log shows this:
tell application "Application Switcher"
get position of palette
get position of palette
--> {632, 57}
end tell
This script shows the same result as the previous:
tell application "Application Switcher"
set x to (position of palette)
end tell
class of x
--> list
But the log shows this:
tell application "Application Switcher"
get position of palette
--> {632, 57}
end tell
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------