Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dimensions of visible monitor



tell application "Finder" to get bounds of window of desktop

Or, using Jon's Commands:

get bounds of item 1 of (screen list)

Neither of these is strictly vanilla but...

HTH

H

On 19/3/07 4:20, "David Hoerl" <email@hidden> wrote:

> I'd like to get the dimensions of the visible region of the main
> monitor. Something like this:
> 
>          set mainScreen to call method "mainScreen" of class "NSScreen"
>          set [x1, y2, x2, y2] to call method "visibleFrame" of mainScreen
> 
> I'd like to do this in a vanilla script, not within AppleStudio. I
> looked in Standard Additions but didn't see it there.
> 
> David


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: AppleScript-Users Digest, Vol 4, Issue 123 (From: David Hoerl <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.