Mac 快速上手

文件资源管理器📂 (finder)

快捷键

  • 拷贝 Command + C
  • 粘贴 Command + V
  • 剪切 粘贴时 Command + Option + V
  • 拷贝路径 Control + Command + C
  • 重命名 单击文件名
  • 上层文件夹 Command + ↑
  • 输入地址打开文件夹 Command + Shift + G
  • 返回 Command + [
  • 前进 Command + ]

小技巧

  • 终端路径打开finder: open .
  • 快捷预览文件: 选择文件并按下 空格键

脚本📃 (Applescript)

通知

# 简单通知
osascript -e 'display notification "该睡觉😴了朋友"'
# 带标题
osascript -e 'display notification "该睡觉😴了朋友" with title "获得成就 <熬夜小能手>"'
# 通知并发出声音
osascript -e 'display notification "该睡觉😴了朋友" with title "获得成就 <熬夜小能手>" sound name "Submarine"'
# 使用变量
osascript -e 'display notification "'"$USER 该睡觉😴了朋友"'" with title "获得成就 <熬夜小能手>"'

对话框

osascript -e 'display alert "你好" message "今天天气非常好, 不出去走走?"'

文字转音

say "hello~"

参考

Last Updated:
Contributors: 余小波