set retour to (return & return)
set theTexte to ("Sélectionnez l'affichage des fichiers cachés du Finder" & retour)
display dialog theTexte buttons {"Visibles", "Invisibles", "Annuler"} default button 3 with icon 2
set resultat to button returned of the result
if (resultat = "Visibles") then
[COLOR="Red"]do shell script "defaults write com.apple.finder AppleShowAllFiles 1[/COLOR]
killall Finder"
else if (resultat = "Invisibles") then
[COLOR="Blue"]do shell script "defaults write com.apple.finder AppleShowAllFiles 0[/COLOR]
killall Finder"
else
quit
end if