I there any way to screenshot only external monitor screen?
do shell script "screencapture -x " & shot_path
I 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.