![]() | 1 sparanoid 2012-03-05 23:16:04 +08:00 |
![]() | 2 hzlzh PRO 我不切换,永久显示隐藏文件。习惯了 |
![]() | 3 yyfearth 2012-03-05 23:55:44 +08:00 totalfinder shift+cmd+. |
![]() | 4 wynnsyt 2012-03-06 00:21:40 +08:00 totalfinder +1 |
![]() | 6 panlilu 2012-03-06 21:32:30 +08:00 try do shell script "defaults read com.apple.finder AppleShowAllFiles" on error get 0 end try set i to (result + 1) mod 2 -- Get opposite of current value tell application "Finder" activate get item (i + 1) of {"Hide", "Show"} display dialog (result & " all hidden files in Finder?") buttons {"Cancel", (result & " Hidden Files")} default button 2 with icon note quit end tell delay 0.5 try do shell script "defaults write com.apple.Finder AppleShowAllFiles " & i launch application "Finder" on error errorMsg number errorNum display dialog "Error (" & errorNum & "):" & return & return & errorMsg buttons "Cancel" default button 1 with icon caution end try ---- 上面的apple script运行一下就好了 |
![]() | 8 yangg 2012-03-07 10:06:21 +08:00 # show or hide All Files/Desktop Icons/Filename extentions in Finder # Usage: # show <command> [switch] # command can be allfile/desktop/ext # $ show allfile # or # $ show desktop 1 show() { package="com.apple.Finder" case ${1:-allfile} in allfile) name="AppleShowAllFiles";; desktop) name="CreateDesktop";; ext) name="AppleShowAllExtensions";package="NSGlobalDomain";; esac if [ "$2" = "" ]; then state=`defaults read $package $name` if [ "$state" = 0 ]; then val=1; fi else val="$2"; fi if [ "$val" = 1 ]; then val=true; else val=false; fi defaults write $package $name -bool $val && killall Finder } |