Google Ads
Google Ads

How To Toggle between Hidden Files

Use Quick Look to Preview Files
While you may use Finder to locate even hidden files if you know the right path, this style of locating hidden files can be tedious especially when you have too many hidden files to work on and there is a need to keep hiding them after use.
To solve this problem, the best solution is to use Automator, which uses shell scripts and OS X’s Service menu within the Finder. Let’s have a look at how the script works.
First launch the Automator. Move on to the templates and choose Service. Now drag the Run AppleScript action from the library and place it on the work area. Move to the top right and select from the drop down box. Select No Input from the drop down: Service Receives.
Now copy the mentioned code. Move on to the Run AppleScript box and paste the code there. Paste the code between the lines beginning from run and return input.
The code: if (do shell script “defaults read AppleShowAllFiles”) is equal to “0” then
do shell script “defaults write AppleShowAllFiles 1″
do shell script “defaults write AppleShowAllFiles 0″
end if
tell application “Finder” to quit
tell application “Finder” to activate

While copy pasting the code, ensure that the quotes and apostrophes come as plain text. For this use Mac Notepad and kill the legacy that you will otherwise find when you copy the code from the website.
Once pasted, Save the Service and exit Automator. You are ready to roll now.
Now whenever you want to toggle between hidden files, simply go to Finder>>Services. Then select Toggle Hidden Files. This script, once launched, toggles the hidden files.
Alternatively you can also try AppleScript Editor. Simply paste the code there and save it as an application. Now anytime you want to use it, go to the Dock and launch it from there. Scripts work in mostly all versions of OS X. you can also try this in Tiger and Leopard.

Be Sociable, Share!

    Related Articles

    • Copying Music from iPodCopying Music from iPod
      Everyone knows that to copy music from iPod, one needs iTunes to be installed. But what if something happens to your iTunes library and you won't ...
    • How To get The Finder Autocomplete Folder NamesHow To get The Finder Autocomplete Folder Names
      Imagine the pain of typing the entire name of nested folders and subfolders in the Finder only to find that the folders path you typed doesn't exi...
    • Implement Word Count in TextEditImplement Word Count in TextEdit
      Unfortunately, Mac OS's TextEdit hasn't got a word count feature. However, you can add this functionality using AppleScript Editor, found under A...
    • Get Rid of HTML in Mac Mail MessagesGet Rid of HTML in Mac Mail Messages
      If you don't need any graphical effects in your emails and give preference to plain text, you can do one of the following:1. To remove only remote...
    • Changing The Mac OS X IconsChanging The Mac OS X Icons
      Looking at the same graphics and icons can get boring at times. So if you want to change the way your Mac looks, here are the steps that will let ...
    • Use Folder Action to Rename your FilesUse Folder Action to Rename your Files
      Some file names are automatically changed when arriving at your Mac. A good example is an email attachment – some mail clients add an .html extens...
    Back to
    Macintosh OS

    No comments

    Leave a Reply