Re: width of only the main screen
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