• 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: Display resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display resolution


  • Subject: Re: Display resolution
  • From: Martin Orpen <email@hidden>
  • Date: Tue, 08 Mar 2005 07:24:57 +0000

on 8/3/05 4:33 am, Robert Poland at email@hidden wrote:

> Is there a way to get current display resolution?

You could cheat by using 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}


You can also use "visibleFrame" instead of "frame"

Daniel's empty AppleScriptKit is hopefully still available from here:
<http://www.red-sweater.com/AppleScriptKit.zip>

Regards

--
Martin Orpen


 _______________________________________________
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

References: 
 >Display resolution (From: Robert Poland <email@hidden>)

  • Prev by Date: Stubborn checkbox
  • Next by Date: Re: Illustrator Pantones
  • Previous by thread: Display resolution
  • Next by thread: Re: Display resolution
  • Index(es):
    • Date
    • Thread