Jump to content

Hide/unhide desktop icons


Recommended Posts

Posted

You created something "I" didn't even know I needed...but I do, I sooooooo much do, I would kiss your feet (well... not really but you get the idea)

 

Thank you thank you thank you

 

 

keep on workflowing ;)

  • 1 month later...
  • 2 months later...
Posted

I just created my own workflow and then thought, "Hey I should check the Alfred forum." But mine's a slight improvement because I wanted something that just toggled hidden and unhidden states at a hotkey. Here's the modified shell script:

 

desktop=$(ls -lO ~/Desktop)
if  grep -q "hidden" <<< $desktop; then
chflags nohidden ~/Desktop/*
else
chflags hidden ~/Desktop/*
fi

It's pretty quick and not having to remember an argument to pass in makes things easier.

 

Bill

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...