[MAC] How to quickly copy file paths under Mac OS x

Source: Internet
Author: User



The path of copying the current directory on Windows has a particularly convenient way, only need to click the path bar with the mouse, it will automatically become like "D:\Downloads\tmp" such as the path, if you want to copy the file path, only need to add directory path and file name together, Linux is also very convenient,readlink -f yourfilewill print out the absolute path of the file, although the Mac can also be used under the command line Greadlink (Mac on the Readlink and Linux features are not the same, greadlink meaning is GNU's readlink, Consistent with Readlink on Linux), but this is obviously not the best solution, after all, Mac is the best combination of graphics and command line, the preferred solution in the graphical interface to solve the problem



Search the next Baidu, roughly to the following two kinds of 3 programs Copy to clipboard



1. Right click on the file, select Show profile can see the directory of the file, this and the Windows on the click on the path blue results consistent, but not easy to use, because this only shows the path of the directory where the file, the absolute path of the file will also need to add a filename



2. Drag the file into the browser, the file path will be displayed in the Address bar



3. Open the text terminal program, drag the file in, the path will be automatically printed out



Each of the above methods have advantages and disadvantages, I expect the best solution should be the right mouse button click on the file, menu directly appearCopy pathoptions, click the file path is copied to the Clipboard, is not a one go feeling, in fact, the MAC system itself for us to provide such a way, just need a little bit of skill, We need to use automator here.



Open the Automator in the Application folder, select the File menu, create a new service, as follows






In the left Action Bar Copy to clipboard, locate the action and drag to the right, as follows






There are two places to modify, "services" received selected as files or folders, located in Finder,cmd+ssaved, namedCopy path, finished!



How to use it? In the Finder to find a random file, click the right mouse button, see if the service options appearCopy path, the following






[MAC] How to quickly copy file paths under Mac OS x


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.