Mac学习-系统Automator将显示与隐藏文件功能添加到Finder服务中.

1 .启动Automator

启动`Automator`

2.选择新建文稿

选择新建文稿

3.选择服务

选择服务

4.[1] 搜索 运行 -> 选择 运行shell脚本 -> [2] 设置 “服务”收到 没有输入和 位于Finder.app -> [3] 添加如下命令

1
2
3
4
5
6
7
8
STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == YES ];
then
defaults write com.apple.finder AppleShowAllFiles NO
else
defaults write com.apple.finder AppleShowAllFiles YES
fi
killall Finder

搜索结果

5.按 Commond + S 保存,并写入名字

保存

6.在系统偏好设置中,选择键盘

选择键盘

7.设置键盘找到 显示与隐藏文件开关勾选

显示与隐藏文件开关

8.Finder 的菜单栏中选择 -> 服务

选择 -> 服务