转自:http://www.cnblogs.com/tyrant/archive/2010/06/09/1754737.html
Snowleopard 截屏
忽然发现截屏不好使了!! ctrl-shift-cmd-3/4,都没效果!尝试了改defaults read com.apple.screencapture 居然什么都没有- -!问题还没解决,先记下!
不过塞翁失马焉知非福阿,HOHO,发现了个更方便的小东西!
其实截屏是有cli的,/usr/sbin/screencapture,可以man screencapture 看具体参数,截屏最常用的其实就是:
- screencapture /my/path 截全屏,另存为文件/my/path!
- screencapture -i /my/path 自定义选取
- screencapture -w /my/path 窗口选择模式
若想存入剪切板而不是文件,搭配参数c即可,如
- screencapture -c
- screencapture -ci
- screencapture -cw
使用方法详情:
01 | usage: screencapture [-icMPmwsWxSCUto] [files] |
02 | -c force screen capture to go to the clipboard |
03 | -C capture the cursor as well as the screen. only in non-interactive modes |
04 | -d display errors to the user graphically |
05 | -i capture screen interactively, by selection or window |
06 | control key - causes screen shot to go to clipboard |
07 | space key - toggle between mouse selection and |
08 | window selection modes |
09 | escape key - cancels interactive screen shot |
10 | -m only capture the main monitor, undefined if -i is set |
11 | -M screen capture output will go to a new Mail message |
12 | -o in window capture mode, do not capture the shadow of the window |
13 | -P screen capture output will open in Preview |
14 | -s only allow mouse selection mode |
15 | -S in window capture mode, capture the screen not the window |
16 | -t<format> image format to create, default is png (other options include pdf, jpg, tiff and other formats) |
17 | -T<seconds> Take the picture after a delay of <seconds>, default is 5 |
18 | -w only allow window selection mode |
19 | -W start interaction in window selection mode |
21 | files where to save the screen capture, 1 file per screen |