mirror of https://github.com/CrimsonTome/tldr.git
osascript, xattr, pmset, say, screencapture: add link (#7368)
parent
048bcdd38a
commit
b85bc433fb
|
@ -1,6 +1,7 @@
|
|||
# osascript
|
||||
|
||||
> 在命令行中运行指定的 AppleScript 或 JavaScript 脚本程序。
|
||||
> 更多信息:<https://ss64.com/osx/osascript.html>.
|
||||
|
||||
- 运行一个 AppleScript 命令:
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
> 配置 macOS 电源管理设置,就像在系统首选项 > 节能程序中一样。
|
||||
> 修改设置的命令必须以 `sudo` 开头。
|
||||
> 更多信息:<https://ss64.com/osx/pmset.html>.
|
||||
|
||||
- 显示当前电源管理设置:
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# say
|
||||
|
||||
> 将文本转换为语音。
|
||||
> 更多信息:<https://ss64.com/osx/say.html>.
|
||||
|
||||
- 大声说出一个句子:
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# xattr
|
||||
|
||||
> 用于扩展文件系统属性的实用程序。
|
||||
> 更多信息:<https://ss64.com/osx/xattr.html>.
|
||||
|
||||
- 列出 键:值 列表,显示指定文件的值扩展属性:
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# osascript
|
||||
|
||||
> Run AppleScript or JavaScript for Automation (JXA) from the command-line.
|
||||
> More information: <https://ss64.com/osx/osascript.html>.
|
||||
|
||||
- Run an AppleScript command:
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
> Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
|
||||
> Commands that modify settings must begin with `sudo`.
|
||||
> More information: <https://ss64.com/osx/pmset.html>.
|
||||
|
||||
- Display the current power management settings:
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# say
|
||||
|
||||
> Converts text to speech.
|
||||
> More information: <https://ss64.com/osx/say.html>.
|
||||
|
||||
- Say a phrase aloud:
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# screencapture
|
||||
|
||||
> Utility to take screenshots and screen recordings.
|
||||
> More information: <https://ss64.com/osx/screencapture.html>.
|
||||
|
||||
- Take a screenshot and save it to a file:
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# xattr
|
||||
|
||||
> Utility to work with extended filesystem attributes.
|
||||
> More information: <https://ss64.com/osx/xattr.html>.
|
||||
|
||||
- List key:value extended attributes for a given file:
|
||||
|
||||
|
|
Loading…
Reference in New Issue