Monday, August 20, 2012

Create a Menu Item to Hide and Show Hidden Files in OS X

Use Automator to Create a Contextual Menu to Hide or Show Hidden Files

How To: Use Automator to show/hide hidden files

http://macs.about.com/od/diyguidesprojects/qt/Create-A-Menu-Item-To-Hide-And-Show-Hidden-Files-In-Os-X.htm

http://www.mikesel.info/use-automator-show-hide-hidden-files/


Using Automator to Create a Toggle Hidden Files Menu Item Launch Automator, located in the /Applications folder. Select Service as the type of template to use for your new Automator task, and click the Choose button. In the Library pane, make sure Actions is selected, then underneath the Library item, click Utilities. This will filter the available workflow types to just those relating to utilities. In the filtered list of actions, click Run Shell Script and drag it to the workflow pane. At the top of the workflow pane are two drop-down menu items. Set the 'Service receives selected' to 'files or folders.' Set the 'in' to 'Finder.' Copy the entire shell script command that we created above (all eight lines), and use it to replace any text that may already be present in the Run Shell Script box. From the Automator file menu, select "Save," and then give the service a name. The name you select will appear as the menu item. I call mine Toggle Hidden Files. After saving the Automator service, you can quit Automator. Using the Toggle Hidden Files Menu Item Open a Finder window. Right-click any file or folder. Select Services, Toggle Hidden Files, from the pop-up menu. The Finder will toggle the state of hiding files, causing hidden files and folders to display or be hidden depending on their current condition.



No comments:

Mimmo97 Blog Archive