Skip to content

Instantly share code, notes, and snippets.

@s4l1h
Created September 21, 2011 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s4l1h/1231965 to your computer and use it in GitHub Desktop.
Save s4l1h/1231965 to your computer and use it in GitHub Desktop.
Show Hide Hidden Files
#!/usr/bin/env python
# encoding: utf-8
"""
show.py
Created by s4l1h on 2011-09-21.
Gizli Dosyaları Göster Gizle
"python show.py true"
gizli dosyalar gösterir
"python show.py"
gizli dosyalar gizler
"""
import sys
import os
try:
if sys.argv[1]:
os.system("defaults write com.apple.Finder AppleShowAllFiles TRUE")
except:
os.system("defaults write com.apple.Finder AppleShowAllFiles FALSE")
os.system("killall Finder")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment