How to quickly show hidden files under Mac OS X System (create workflow using Automator)

Source: Internet
Author: User



Sometimes it is necessary to display the hidden files in the system, which is not as convenient as the Windows system in MAC (tick the option to operate) and need to be executed in Terminal:


localhost: ~ mx $ defaults write com.apple.finder AppleShowAllFiles -bool true // show
localhost: ~ mx $ killall Finder
localhost: ~ mx $ defaults write com.apple.finder AppleShowAllFiles -bool false // Hide
localhost: ~ mx $ killall Finder

In order to open the hidden files, so open implementation is too troublesome, and each time to enter so long a heap, it is too troublesome, so you have to use the Mac system Automator to create a convenient form


1. Open Automator Select Service











2. Modify the execution location and receive parameter types



Above the edit box on the right, select: Service receives "no input" in "Finder.app"


3. Add a hint message (can be ignored)


Add tip information to prevent accidental operation



Select Utilities, Ask for confirmation drag to the right after the interface shown below








4. Perform actions based on the results of the prompt message box


Drag Utilities. Run Shell Script below the hint message and enter:


if [ `defaults read com.apple.finder AppleShowAllFiles` != "TRUE" ];
then
	defaults write com.apple.finder AppleShowAllFiles TRUE
else
	defaults write com.apple.finder AppleShowAllFiles FALSE
fi
killall Finder


Such as






Note: The"'" in the If [] is not a single quote, it is the key entered under the keyboard ESC





5. Click Run in the top right corner to view the effect, export and install


Double-click the exported file:



You will get a hint to execute the install:








6. View usage location and installation location


The When top tool file is available in the Finder program when you can open it in services



Turn on or off show hidden files, Finder, Services









To view the installation location, you can find "turn show hidden files on or off" in system perferences (Systems Preferences)-Keyboard (Keyboard)-->shortcuts (shortcut key)-->services, right-- Show in Finder






How to quickly show hidden files under Mac OS X System (create workflow using Automator)


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.