• 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
Re: Desktop Bounds Broken in Tiger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Desktop Bounds Broken in Tiger?


  • Subject: Re: Desktop Bounds Broken in Tiger?
  • From: Laine Lee <email@hidden>
  • Date: Fri, 20 May 2005 21:58:23 -0500

> This worked in Panther
>
>     tell application "System Events"
>         tell process "Finder"
>             set vFoundWindow to first window whose position is {0, 0}
>             return the size of vFoundWindow
>         end tell
>     end tell
>
> Any idea¹s on another approach?


I'm not sure it worked in every incarnation of Panther, either.

You could use obj-c calls with Daniel's AppleScriptKit application:

tell application "AppleScriptKit"
    set foo to call method "mainScreen" of class "NSScreen"
    set bar to call method "frame" of foo
end tell

-->{ 0.0, 0.0, 1280.0, 854.0} (15" TiBook)

You can also use "visibleFrame" instead of "frame"

I was still able to get it at

<http://www.red-sweater.com/AppleScriptKit.zip>

--
Laine Lee
email@hidden
http://lonestar.utsa.edu/llee


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Desktop Bounds Broken in Tiger? (From: Jason Bourque <email@hidden>)

  • Prev by Date: Re: Mount Xserve Volume Broken in Tiger?
  • Next by Date: Remote AppleEvents for Folder Path
  • Previous by thread: Desktop Bounds Broken in Tiger?
  • Next by thread: Re: Desktop Bounds Broken in Tiger?
  • Index(es):
    • Date
    • Thread