Timeline for Automator, Show/Hide hidden file
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 16, 2019 at 11:53 | comment | added | David Anderson |
The is also a way to Show/Hide files from menu bar. The automator service can be downloaded from Toggle Hidden Files. When installed, you can select Finder->Services->Toggle Hidden Files from the menu bar.
|
|
Feb 16, 2019 at 5:27 | vote | accept | CommunityBot | ||
Feb 16, 2019 at 5:03 | answer | added | user3439894 | timeline score: 2 | |
Feb 16, 2019 at 5:02 | comment | added | user321280 | @user3439894 Thank you so much, it now works perfectly | |
Feb 16, 2019 at 4:58 | comment | added | user3439894 |
Change if [ defaults read com.apple.finder AppleShowAllFiles = "FALSE" ] to: if [ "$(defaults read com.apple.finder AppleShowAllFiles)" = "FALSE" ]
|
|
Feb 16, 2019 at 4:41 | comment | added | user321280 |
@user3439894 I have ran those commands in sh, and do you have any idea why defaults read com.apple.finder AppleShowAllFiles = "FALSE" always return FALSE regardless of what AppleShowAllFiles boolean is. It is the same problem when I remove double quotation from FALSE in command.
|
|
Feb 16, 2019 at 4:20 | comment | added | user3439894 |
The reason it fails in a clean install is because the AppleShowAllFiles key does not exist in the com.apple.finder plist file. You can quickly solve the issue by executing the following compound command in Terminal: defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder Otherwise, you'll need to write the if statement to handle the fact that the defaults command is not returning the expected boolean.
|
|
Feb 16, 2019 at 3:57 | history | asked | user321280 | CC BY-SA 4.0 |