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.
tagged
AppleScript,
Library folder in
Tips & Tricks


