Showing hidden files

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Showing hidden files

Postby hifi_design160 » 30. April 2005 21:04

Using XAMPP, and having the app stored in the /usr/ directory can be a bit confusing for some folks. Which is why in the new version, it'll be stored in the Applications directory. Many thanks to the XAMPP team.

But sometimes, for whatever reason, as a graphic designer and amateur web developer, I want to see my file structure graphically. Many mac users feel the need for this. It's not because we're all lazy, our brains just might work differently.

At any rate, should you need to see those hidden files, try this bit of apple script and save it as an application. I believe I obtained the script from http://www.macosxhints.com/, so I am not liable for any issues this may cause. It IS Tiger compatible and remember to be careful what you mess with when viewing hidden files.

Script:

display dialog "Set the visibility of hidden files..." buttons {"Cancel", "Visible", "Invisible"} default button 1
copy the result as list to {buttonpressed}
if the buttonpressed is "Invisible" then
try
tell application "Finder" to quit
do shell script "defaults write com.apple.finder AppleShowAllFiles OFF"
delay 1
tell application "Finder" to activate
end try
else if the buttonpressed is "Visible" then
try
tell application "Finder" to quit
do shell script "defaults write com.apple.finder AppleShowAllFiles ON"
delay 1
tell application "Finder" to activate
end try
end if
hifi_design160
 
Posts: 1
Joined: 30. April 2005 20:54
Location: Maryland - USA

Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 4 guests