Tips for using Mac & Automator

Source: Internet
Author: User

[Mac OS X terminal command opening function]

1.Lion Display Resource Library
Method One:
Show
In terminal, enter the following command:
Chflags Nohidden ~/library/

Hide
In terminal, enter the following command:
Chflags Hidden ~/library/

Method Two:
Open Finder, select the Go to Option key in the menu to display the library item (repeat the action every time you open it).

2.Finder Show hidden files
Show hidden files
In terminal, enter the following command:
Defaults write Com.apple.finder Appleshowallfiles-bool true
Killall Finder

Recovering hidden files
In terminal, enter the following command:
Defaults write Com.apple.finder Appleshowallfiles-bool false
Killall Finder

3.Xcode Uninstall
In terminal, enter the following command:
Sudo/library/uninstall-devtools–mode=all

For the actual installed directory, Xcode is installed in the/developer directory by default and can be executed
Sudo/developer/library/uninstall-devtools–mode=all

4. Show full path in Finder title bar
In terminal, enter the following command:
Defaults write Com.apple.finder _fxshowposixpathintitle-bool YES
Killall Finder

5. Remove the shadow from the window screenshot
When you take a screenshot of the window (command-shift-4, space), the resulting picture is automatically added with a circle of shadows around it.
If you don't like the effect of this shade, you can turn it off.
In terminal, enter the following command:
Defaults write Com.apple.screencapture Disable-shadow-bool true
Killall Systemuiserver

6. Force Safari to open a Web page in a new tab
Safari is the default support for tag browsing. However, when we click on a link on the page or click on a link in another application,
Safari is often opened with a new window that causes too many safari windows on the page and is poorly managed. By following this little trick,
We can let safari open the page by default in a new tab.
In terminal, enter the following command:
Defaults write Com.apple.Safari Targetedclickscreatetabs-bool true

7. Change the location of the screenshot image
Mac OS provides a handy screenshot shortcut that allows us to take screenshots of the entire screen, part of the screen, or the application window very quickly. However, this screenshot feature has one disadvantage, that is, you can only save screenshots to the desktop. If we take a lot of pictures, it will make the desktop seem very messy. Is there any way to modify the default location of screenshots? Yes. The method is very simple, as long as you enter the following command in "terminal".
Defaults Write Com.apple.screencapture location
Killall Systemuiserver

When you enter a command, replace the "storage location" with a real folder. For example, if you want to store the screenshots folder in your user directory, enter
Defaults write Com.apple.screencapture location ~/screenshots

============================================

[Automator Use]

One: Set the MAC lock screen shortcut key

(reason:) If the user has to leave the computer for a period of time, you can choose to directly close the notebook. However, the original running process will hang or end, if you are downloading, then the download will be suspended (sometimes can not recover), if the network service is being provided, then because the network is broken, others can not connect your notebook. Lock screen can solve this problem, under Windows with Win+l shortcut keys on the lock screen, but Mac OS X has not been the default shortcut keys.

(Practice:) First find the "Keychain Access" utility in the Finder (specifically/applications/utilities/keychain access.app), then select "Show Keychain status in menu bar" in preferences. At this point we found that the system menu has a small icon like a lock, just click on it, you can find the lock screen.

(PS: The above method realizes the lock screen, but has not yet reached the target of the shortcut key Control lock screen.) Although so, but it's effect gives us a lock screen idea. First, we ask the screen saver to enter a password when it resumes, and then the lock screen issue becomes a startup screen saver. )

Automator Settings

1 . Find "Security and privacy" under "System Preferences", and on the "General" page, tick "Enter your password immediately after going to sleep or start screen saver".

2, to use the shortcut key to start the screen saver, a relatively complex point. Find "Automator" in "Application". Create a new service, find "Start screen saver" in "Utilities" under "action", and drag the action to the right, and select "No input" and "any application", then save the service as your own defined name.

3, find "keyboard" in "System Preferences", then configure the shortcut key for the service you just defined, I set the Command+control+l


Two: Mac Custom Shortcuts (quit/Hide apps)


1. "Application"--"Automator":

1. Create a new "service"

2. Actions----> Utilities----> Exit all Apps/Hide all apps

3. And drag this action to the right

4. and select "No input" and are located in "any application" as shown in.

5. Then save the service as a name of your own definition.

2, "System Preferences"--"keyboard"

Then set the command+alt/option+q/h--(custom) for the service you just defined -configure shortcut keys


============================================

|-> Github:spongebob-github

|--> Copyright (c) Bing Ma.

Tips for using Mac & Automator

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.