Script Debugger v.7.0.12 is presenting a problem with screencapture, that I cannot solve.
The following applescript produces a tan rectangle, that appears to be the the size of the drawn mouse coordinates, when screencapture is called via “do shell script”
set screencaptureSh to "/usr/sbin/screencapture" & " -ci"
do shell script screencaptureSh
This undesired tan rectangle, also lacks any captured image from the screen.
The same screencapture command works with no tan rectangle but with a captured image:
• when called in Terminal, as /usr/sbin/screencapture -ci
• when called by a combination of keyboard commands {command, shift,4} in any application
• when called in Script Editor, with the same applescript code
I checked Script Debugger’s preferences, but found nothing that appeared to cause this rectangle box to show, or to prevent capturing the screen image.
Might Script Debugger
- require a preference be unchecked?
- require a preference to be checked?
- trigger some an application or unix code when screencapture is called with the do shell script command?