Re: Desktop Bounds Broken in Tiger?
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