做为一个 开发者 ,你会在 Mac OS 下,显示隐藏文件吗?

2016-04-21 10:42:31 +08:00
 Insomnia
不显示的时候,偶尔用回到,显示的时候,又感觉好乱。。。
2053 次点击
所在节点    问与答
17 条回复
firemiles
2016-04-21 10:47:37 +08:00
不是用 ls -a 吗
HustLiu
2016-04-21 10:56:11 +08:00
感觉楼主还是 windows 使用习惯啊……
stormslowly
2016-04-21 12:20:10 +08:00
path finder 可以解你的毒
xuwenmang
2016-04-21 12:25:53 +08:00
@HustLiu Mac Os 显式隐藏文件用啥习惯
techyan
2016-04-21 12:27:35 +08:00
。。然后 spotlight 的索引文件就都出来了?
DT27
2016-04-21 12:33:12 +08:00
来回切换太麻烦了,就直接一直显示了。。
debiann
2016-04-21 12:38:23 +08:00
ls -a +1000 万
jsonline
2016-04-21 12:45:35 +08:00
楼主不用命令行?
逼格一下就没了!
Drifter
2016-04-21 13:17:36 +08:00
ls -a

另外,想打开隐藏文件的话,可以使用 open -a somePlayer.app some_file.mkv
kkhaike
2016-04-21 13:28:38 +08:00
@Drifter 有可能是 some_file.avi
yoa1q7y
2016-04-21 13:49:23 +08:00
open ~/Movies/.aa/0819/BBI-194.avi
SharkIng
2016-04-21 13:54:12 +08:00
ls -a 就行了,我都不知道显示隐藏怎么设置.
qfdk
2016-04-21 14:03:44 +08:00
不会 la 这个更快 看着带。的就强迫症发作了
jy01264313
2016-04-21 14:23:03 +08:00
基本就不用鼠标打开文件
kassadin
2016-04-21 18:33:45 +08:00
display dialog "是否显示.隐藏文件" buttons {"显示", "隐藏"} with icon 2 with title "Switch to presentation mode" default button 1
set switch to button returned of result
if switch is "隐藏" then
do shell script "defaults write com.apple.finder AppleShowAllFiles -bool false;killall Finder"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles -bool true;killall Finder"
end if

脚本编辑器保存成 app

显示 /隐藏桌面
display dialog "桌面图标设置为可见或隐藏?" buttons {"可见", "隐藏"} with icon 2 with title "Switch to presentation mode" default button 1
set switch to button returned of result
if switch is "隐藏" then
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder"
else
do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder"
end if
just4fan
2016-04-21 20:50:26 +08:00
@stormslowly @Insomnia 同推荐 path finder
SoloCompany
2016-04-21 23:25:19 +08:00
Option + 空格
~
.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/273301

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX