• 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: Placing a new Unix command inside me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Placing a new Unix command inside me


  • Subject: Re: Placing a new Unix command inside me
  • From: Gil Dawson <email@hidden>
  • Date: Tue, 04 Oct 2016 17:31:02 -0700

Oh.  Wow.  I had no idea.

This is just marvelous.  (It works, of course.  I tried it.)

A lot has happened since I last read an AppleScript book.

Thank you, Shane, for letting me know what I've been missing.

--Gil


On Oct 2, 2016, at 4:45 PM, Shane Stanley <email@hidden> wrote:

On the other hand, you can get most of that information without hmscreens:

use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use framework "AppKit"
use scripting additions

set allInfo to {}
set theScreens to current application's NSScreen's screens()
repeat with aScreen in theScreens
set theInfo to aScreen's deviceDescription() as record
set theInfo to theInfo & aScreen's frame() as record
set end of allInfo to theInfo
end repeat
return allInfo


 _______________________________________________
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

References: 
 >Placing a new Unix command inside me (From: Gil Dawson <email@hidden>)
 >Re: Placing a new Unix command inside me (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Is there a way to speed this up?
  • Next by Date: stringWithContentsOfURL works when it's a script, not when it's an app
  • Previous by thread: Re: Placing a new Unix command inside me
  • Next by thread: Swift + AppleScript
  • Index(es):
    • Date
    • Thread