• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
App switcher in OS 9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: App switcher in OS 9
      • From: Emmanuel <email@hidden>
    • Re: App switcher in OS 9
      • From: Jan Pieter Kunst <email@hidden>
  • Prev by Date: Re: Reliably calling an application within Handlers
  • Next by Date: Finding default browser with AS
  • Previous by thread: Re: Ok now that I've got MacOS X
  • Next by thread: Re: App switcher in OS 9
  • Index(es):
    • Date
    • Thread