• 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: Shane Stanley <email@hidden>
  • Date: Mon, 03 Oct 2016 10:45:39 +1100

On 3 Oct. 2016, at 4:48 am, Gil Dawson <email@hidden> wrote:

...which suggests to me that the poster put that command inside his script. 

How might he have put it there?

There are a few different ways. 

In Script Debugger, you show the Resources pane (middle icon in the Show toolbar item), and drag the file from the Finder into the Resources list.

In Script Editor, you show the Bundle pane (right icon in the View toolbar item), and drag the file from the Finder into the Resources list.

In the Finder, control-click on the applet's icon and choose Show Package Contents. You can then find the Resources folder inside the Contents folder, and drag your file there.

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


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


 _______________________________________________
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: Placing a new Unix command inside me
      • From: Gil Dawson <email@hidden>
References: 
 >Placing a new Unix command inside me (From: Gil Dawson <email@hidden>)

  • Prev by Date: Placing a new Unix command inside me
  • Next by Date: Swift + AppleScript
  • Previous by thread: Placing a new Unix command inside me
  • Next by thread: Re: Placing a new Unix command inside me
  • Index(es):
    • Date
    • Thread