Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set question to display dialog "Show or hide hidden files?" & return & "Don't that forget this will relaunch Finder." buttons {"Show hidden files", "Hide hidden files", "Cancel"}
- set theAnswer to button returned of result
- if theAnswer is "Show hidden files" then
- do shell script "defaults write com.apple.Finder AppleShowAllFiles TRUE && killall Finder"
- end if
- if theAnswer is "Hide hidden files" then
- do shell script "defaults write com.apple.Finder AppleShowAllFiles FALSE && killall Finder"
- end if
- if theAnswer is "Cancel" then
- return
- end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement