Skip to content

Instantly share code, notes, and snippets.

@sanPuerquitoProgramador
Last active January 12, 2018 17:22
Show Gist options
  • Save sanPuerquitoProgramador/47e89a7920cbfe349be919bce1805d8a to your computer and use it in GitHub Desktop.
Save sanPuerquitoProgramador/47e89a7920cbfe349be919bce1805d8a to your computer and use it in GitHub Desktop.
Script para mostrar y ocultar los archivos ocultos de la mac. Muy util cuando trabajas con .htaccess y otros archivos
display dialog "Archivos ocultos" buttons {"Mostrar", "Ocultar"}
set result to button returned of result
if result is equal to "Mostrar" then
do shell script "defaults write com.apple.finder AppleShowAllFiles -boolean true"
else
do shell script "defaults delete com.apple.finder AppleShowAllFiles"
end if
do shell script "killall Finder"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment