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 |