• 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: dimensions of visible monitor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dimensions of visible monitor


  • Subject: Re: dimensions of visible monitor
  • From: "Reese, Stevan" <email@hidden>
  • Date: Mon, 19 Mar 2007 21:28:50 -0700
  • Acceptlanguage: en-US
  • Thread-topic: dimensions of visible monitor

This is how I did it;
set MyScreenResolution to paragraphs of (do shell script "system_profiler SPDisplaysDataType|grep Resolution|awk -F\\   '{print $2}{print $4}'")
set horiz to item 1 of MyScreenResolution --Get horizontal pixels
set vert to item 2 of MyScreenResolution --Get Vertical pixels

stevan


On 03/19/07 1:39 PM, "Hugh Dixon" <email@hidden> wrote:



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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: dimensions of visible monitor
      • From: kai <email@hidden>
References: 
 >dimensions of visible monitor (From: Hugh Dixon <email@hidden>)

  • Prev by Date: Re: Display Dialog handling trouble
  • Next by Date: Re: Passing MS Word object specs (Larry the O)
  • Previous by thread: dimensions of visible monitor
  • Next by thread: Re: dimensions of visible monitor
  • Index(es):
    • Date
    • Thread