• 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
Pixel range of monitor...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pixel range of monitor...


  • Subject: Pixel range of monitor...
  • From: David Crowe <email@hidden>
  • Date: Fri, 5 Jul 2002 15:34:23 -0600

[I sent this before, but I didn't see it appear on the list, so I'm sending it once more]


In Mac OS 9.2 I was able to get the size of the screen by:

tell application "Finder"
bounds of window of desktop
end tell

This would give me the usable area of the screen, useful for positioning a window relative to the right or bottom of the screen.

However, that gives an error in OS X (Finder: can't get bounds of window of desktop).

In OS X the expression "bounds of desktop" executes, but provides no useful information. On my computer the result is "{-33, -33, 31, 31}".


Is there a way to obtain the bounds of a monitor in Applescript that works in OS X? If it works in OS 9 as well, that would be a bonus.

- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Pixel range of monitor...
      • From: Jon Pugh <email@hidden>
  • Prev by Date: RE: What's the best scriptable app for graphs?
  • Next by Date: Re: What's the best scriptable app for graphs?
  • Previous by thread: Re: Pixel range of monitor...
  • Next by thread: Re: Pixel range of monitor...
  • Index(es):
    • Date
    • Thread