• 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: width of only the main screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: width of only the main screen


  • Subject: Re: width of only the main screen
  • From: Martin Orpen <email@hidden>
  • Date: Tue, 13 Nov 2007 11:35:04 +0000

On 13 Nov 2007, at 09:02, Takaaki Naganoya wrote:

46 messages are in my
/ML/Apple US/AppleScript関連/AppleScript Users/Technology Specific/Monitor,screen,display/ size,resolution,hight,width,bounds,dimension
folder.

I couldn't see my solution in your collection ;-)


tell application "Automator" set foo to call method "mainScreen" of class "NSScreen" set bar to call method "visibleFrame" of foo end tell

-->
0.0
42.0
1920.0
1178.0


Where item 2 is the Dock height and item 4 is the screen height with the menu bar depth subtracted.


As you are only getting information from the "mainScreen" it will ignore the second monitor. Calling "frame" instead of "visibleFrame" will give you the vanilla monitor bounds and "_currentSetting" will grab a whole load of useful data if you are using Leopard.

--
Martin Orpen
Idea Digital Imaging Ltd


_______________________________________________ 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: width of only the main screen
      • From: Robert Poland <email@hidden>
References: 
 >width of only the main screen (From: Robert Poland <email@hidden>)
 >Re: width of only the main screen (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Fails to set authentication for smtp server in Mail (OS X 10.5)
  • Next by Date: InDesign relink and update picture
  • Previous by thread: Re: width of only the main screen
  • Next by thread: Re: width of only the main screen
  • Index(es):
    • Date
    • Thread