Screencapture -l:非法选项? [英] Screencapture -l : illegal option?

查看:183
本文介绍了Screencapture -l:非法选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SO的许多页面上都看到过(例如,这里: http ://guides.macrumors.com/screencapture

您如何解释?我该如何解决?

解决方案

不确定这是一个编程问题还是更适合apple.stackexchange.com的问题,但无论如何:

当我运行"screencapture -l"时,我看到以下内容:

screencapture: illegal option -- l
usage: screencapture [-icMPmwsWxSCUtoa] [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
  -a         do not include windows attached to selected windows
  -r         do not add dpi meta data to image
  -l<windowid> capture this windowsid
  -R<x,y,w,h> capture screen rect
  files   where to save the screen capture, 1 file per screen

它们在上面的输出("windowsid"?)中没有明确说明,但是看起来"-l"选项需要一个窗口ID,以便屏幕捕获将捕获屏幕上的单个窗口./p>

I've seen in many pages here on SO (for example here: https://apple.stackexchange.com/questions/56561/how-do-i-find-the-windowid-to-pass-to-screencapture-l) that you have to use the command: screencapture -l in order to capture a single window given its ID.

However when I try to enter screencapture -l into the terminal I get this error:

screencapture: illegal option -- l

I've checked a reference and actually I can't see -l as a possible attribute for screencapture: http://guides.macrumors.com/screencapture

How do you explain this? How can I solve this?

解决方案

Not certain if this is a programming question or something better suited for apple.stackexchange.com, but anyways:

When I run "screencapture -l", I see this:

screencapture: illegal option -- l
usage: screencapture [-icMPmwsWxSCUtoa] [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
  -a         do not include windows attached to selected windows
  -r         do not add dpi meta data to image
  -l<windowid> capture this windowsid
  -R<x,y,w,h> capture screen rect
  files   where to save the screen capture, 1 file per screen

They don't make it clear in the above output ("windowsid"?), but it looks like the "-l" option requires a window id, so that screencapture would capture a single window on the screen.

这篇关于Screencapture -l:非法选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆