• 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: screen size available (without dock)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen size available (without dock)


  • Subject: Re: screen size available (without dock)
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 21 Mar 2014 09:52:37 +1100

On 20 Mar 2014, at 10:28 pm, koenig.yvan <email@hidden> wrote:

I wish to know if we may get the same infos without _javascript_.

Screen's have a method visibleFrame that does what you want in ASObjC:

use framework "AppKit" -- for NSScreen
on mainScreenSize()
return (current application's NSScreen's mainScreen()'s visibleFrame()'s |size|()) as list
end mainScreenSize


-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: screen size available (without dock)
      • From: "koenig.yvan" <email@hidden>
References: 
 >screen size available (without dock) (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Bounds_of_Document_QXP10
  • Next by Date: Re: Scope riddle I can't seem to solve. (Probably very easy to solve for an experienced coder)
  • Previous by thread: screen size available (without dock)
  • Next by thread: Re: screen size available (without dock)
  • Index(es):
    • Date
    • Thread