Tyrant

我是个废人,贪婪、奢侈、懒惰、厌恶水果和运动,我应该被扔进小黑屋,关个3、5、7年,每天吃残羹剩饭,与蛇虫鼠蚁为伴,出来后百毒不侵,顿悟世间之大智慧,在临死前的最后几年,为自己画上辉煌的句号,然后孤独终老,了此残生。

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

 

使用方法详情:

 

usage: screencapture [-icMPmwsWxSCUto] [files]
  -c         force screen capture to go to the clipboard
  -C         capture the cursor as well as the screen. only in non-interactive modes
  -d         display errors to the user graphically
  -i         capture screen interactively, by selection or window
               control key - causes screen shot to go to clipboard
               space key   - toggle between mouse selection and
                             window selection modes
               escape key  - cancels interactive screen shot
  -m         only capture the main monitor, undefined if -i is set
  -M         screen capture output will go to a new Mail message
  -o         in window capture mode, do not capture the shadow of the window
  -P         screen capture output will open in Preview
  -s         only allow mouse selection mode
  -S         in window capture mode, capture the screen not the window
  -t<format> image format to create, default is png (other options include pdf, jpg, tiff and other formats)
  -T<seconds> Take the picture after a delay of <seconds>, default is 5
  -w         only allow window selection mode
  -W         start interaction in window selection mode
  -x         do not play sounds
  files   where to save the screen capture, 1 file per screen

 

 

posted on 2010-06-09 14:31  Tyrant  阅读(456)  评论(0编辑  收藏  举报

导航