I've got a external usb hard drive I use back and forth between my car and my MBP. The external hard drive is formatted FAT32 and I need to find all of the files that Windows leaves behind, which I believe they are hidden.
I've got a external usb hard drive I use back and forth between my car and my MBP. The external hard drive is formatted FAT32 and I need to find all of the files that Windows leaves behind, which I believe they are hidden.
tell application "Finder" to quit
display dialog "Show Hidden Files..." buttons {"ON", "OFF"} ¬
default button 3
copy the result as list to {buttonpressed}
try
if the buttonpressed is "OFF" then do shell script ¬
"defaults write com.apple.finder AppleShowAllFiles OFF"
if the buttonpressed is "ON" then do shell script ¬
"defaults write com.apple.finder AppleShowAllFiles ON"
end try
tell application "Finder" to launch
Normal it's security
just write it and press enter
P.s Even for security if you put a wrong letter you cannot erase it
So if you put a wrong letter just press enter and restart
defaults read com.apple.Finder AppleShowAllFiles TRUE && killall Finder
I dunno how that worked for you, but for me it wasn't just a matter of showing all the files, but I had to use terminal to navigate to the external drive in the first place, or else any modifications made in terminal would be made in the default drive (i.e. your mac's main HD)
In terminal first you would have to navigate using
cd "/Volumes/My External Harddrive"
where 'My External Harddrive' would be the name of your actual harddrive (i.e. 'Untitled')
after which, your termal lines will start off with
YourCompName:ExternalHDName UserName$
At this point, then you can command it to show hidden files using
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
It took me forever to figure this out, but I had to do it this way. I kept just entering "defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder" and yes, it did show all the hidden files on my harddrive, but not the hidden files on the Ext HD. Not until I switched the terminal to the actual external HD did it show THOSE hidden files.