Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

help on terminal command

i just accidently copy a command to terminal to order make a bootable USB for Mavericks, what the command for the default view folder on terminal?

just too annoying looking ds_store file visible in my all folder

MacBook, Mac OS X (10.6.8)

Posted on Apr 19, 2014 1:51 PM

Reply
3 replies

Apr 19, 2014 1:54 PM in response to drichie

Open the Script Editor or AppleScript Editor in one of the subfolders of Applications and run the following:


tell application "Finder" to quit

if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then

do shell script "defaults write com.apple.finder AppleShowAllFiles 0"

else

do shell script "defaults write com.apple.finder AppleShowAllFiles 1"

end if

delay 2

tell application "Finder" to run


If you change your mind later, run the script again.


(105148)

Apr 22, 2014 7:02 AM in response to drichie

Neil's script will work so long as you didn't use the key "True" (a synonym for "1") in the original command to turn on hidden files. To turn Finder back to normal, copy and paste this entire line into Terminal:



defaults write com.apple.finder AppleShowAllFiles 0; killall Finder


Press 'return' to enter it.


I have a free, one-click app for toggling hidden files on and off that you can download and keep in your Dock if remembering Terminal commands is too boring. 🙂 .



You can download "Reveal.app" from here:


http://applehelpwriter.com/apps/


(disclaimer: this links to my personal website which is in no way endorsed by Apple)

help on terminal command

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.