MacTexan Wallpaper o' th' Week

Sedona Starry Night


Help us, WE'RE BROKE:
Search MacTexan
MacTexan on Twitter

« Use iCloud Like DropBox (Sort of...) | Main | Open a Terminal Window at the Current Finder Selection »
Sunday
Oct022011

Create a Finder Toolbar Button to Reveal Lion's Hidden Library Folder

One annoying new "feature" of OS X 10.7 is the invisibility of the user Library folder. Apple decided it didn't want the average user snooping about in there so it made the folder invisible by default. OK, I get it.  But there's some really useful stuff in there that we gearheads might want to tweak. Here's an AppleScript that will toggle the "~/Library" folder's visibility. 

tell application "System Events"
    set libvis to (get visible of folder "~/Library")
end tell

if libvis = false then --~/Library is currently invisible
    tell application "System Events" to set visible of folder "~/Library/" to true
else --~/Library is visible
    tell application "System Events" to set visible of folder "~/Library/" to false
end if

You can run this straight from the AppleScript editor or save it as an application (as I did) and drag it into the Finder's toolbar to keep it handy. Do whatever you like. 

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>