Jump to content

Manage hidden files


Recommended Posts

Posted (edited)

Hi!

I've just created a simple workflow that manage hidden files on OS X.

 

The cool feature is the possibility to see current status of hidden files directly in Alfred (in the subtitle of the extension).

 

alfred_hiddenfiles_1.png

alfred_hiddenfiles_2.png

alfred_hiddenfiles_3.png

 

You can download extension on GitHub: https://github.com/BubiDevs/manage-hidden-files

 

I'm waiting for your opinion! :)

 

PS: I've tested It only on 10.8

Edited by Valkiry
Posted

I'll like this, but i did swap the logic in the script. To me it feels more natural to hide the files when i type "hidden true"

Posted (edited)

Would it be somehow possible to change this workflow to work with Path Finder...? :)

 

edit: I agree with Banjer. Was confused the first seconds.

Edited by Domenic
Posted

Thanks for the suggest!

You are right, initially I use "true" because in the command I have to set true in the flag.

However I think that "hidden true" it's more natural.

Tomorrow I'll update the script and commit it :)

Posted

I've updated the workflow with the suggestion.

 

Enjoy it! :)

 

PS: I'm going to add support for OS X 10.7 in the next version

Posted

There is another workflow that did this sort of thing posted way back. I remember that the syntax was changed between osx versions, so I looked up the command for previous versions and posted them (maybe with an updated workflow). I just modified it to run the commands for before 10.8 and 10.8, which wasn't the most elegant way to do it, but it did the job. It would be great to see one that's more elegant (gets the version of osx and runs the appropriate command). If you do a search on these forums, then you can probably find the old one if you want to work from there.

I'd love to see it done better.

Posted

Yeah, thanks!

 

I think to use something like this:

 

#check version of osx 
VERSION=$(sw_vers -productVersion)
OSX=${VERSION:0:4}
echo $OSX
if [ "$OSX" = "10.8" ]; then
	echo "Mountain Lion"
else
	echo "Lion or pre Mac OS X"
fi

 

 

Later today I search in the forum the command to use in 10.7 :)

  • 3 months later...
  • 1 year later...

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...