I there any way to screenshot only external monitor screen?
do shell script "screencapture -x " & shot_path
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityI there any way to screenshot only external monitor screen?
do shell script "screencapture -x " & shot_path
Manually, you can always use Cmd + Shift + 4 and select the area you want.
For Applescript, check out this post: https://stackoverflow.com/questions/8764072/screen-capture-with-applescript
set imagePath to (path to desktop as text) & "screenCapture.png" do shell script "screencapture -mx -T0 " & quoted form of POSIX path of imagePath
Cmd + Shift + 3 takes a screen shot of the whole screen!
If it's the main display, you could use screencapture -m. Or if you know its coordinates, screencapture -Rx,y,w,h (rect) captures a specified area.
-R is only shown in the help message and not on the man page.
system_profiler SPDisplaysDataType shows information about connected displays. osascript -e 'tell app "Finder" to bounds of window of desktop' shows the combined dimensions of displays.