简体   繁体   English

更改所有相同类型的文件图标 [Yosemite]

[英]Change all file icons with same type [Yosemite]

I have many excel files in my computer, and the icon of all of them are plain paper, like this:我的电脑里有很多excel文件,它们的图标都是普通纸,像这样:在此处输入图片说明

I want all icons to be .numbers icon.我希望所有图标都是 .numbers 图标。 Do anyone know how to do that ?有谁知道怎么做?

Here's what you could do :这是你可以做的:

  • Open a Finder window and navigate to /Applications/打开 Finder 窗口并导航到 /Applications/
  • Find the app whose file icon you want to change找到您要更改其文件图标的应用
  • Right click it and select "Show Package Contents"右键单击它并选择“显示包内容”
  • Navigate to Contents/Resources/ and find the appropriate icon file.导航到 Contents/Resources/ 并找到相应的图标文件。 Replace it with your new icon file.将其替换为您的新图标文件。
  • Restart your computer to update the icon cache.重新启动计算机以更新图标缓存。

Or you can change the default app for a file type and set all files of that type to be associated with the default app if that's what your question says:或者,您可以更改文件类型的默认应用程序,并将该类型的所有文件设置为与默认应用程序相关联,如果您的问题是这样的:

  • Open a Finder window and locate the file type you want to change.打开 Finder 窗口并找到要更改的文件类型。
  • Push Command+i or go to File > Get Info按 Command+i 或转到文件 > 获取信息
  • Under "Open With" select the app you like.在“打开方式”下选择您喜欢的应用程序。 You have just changed the default app for that individual file.您刚刚更改了该单个文件的默认应用程序。
  • To change the default for all files of that type, push the "Change All" button and then "Continue"要更改该类型所有文件的默认值,请按“全部更改”按钮,然后按“继续”

This will make all your excel files to open with numbers while the previous one will just change the icon这将使您的所有 excel 文件都以数字打开,而前一个文件只会更改图标

Here is a simple solution that works all times:这是一个始终有效的简单解决方案:

  1. Find the file with icon that you want to apply for (ex: *.numbers file), then Command + i to open it's info Panel找到您要申请的带有图标的文件(例如:*.numbers 文件),然后 Command + i 打开它的信息面板

  2. Find the file you want to apply the icon for (ex: your *.xlsx) file.找到您要为其应用图标的文件(例如:您的 *.xlsx)文件。 then Command + i to open it's info Panel然后 Command + i 打开它的信息面板

  3. Now that you have your two file's info panel side by side, you can drag the icon from the first file's panel ( only from header/title bar ) and apply it to a second file's panel, as shown:现在您并排拥有两个文件的信息面板,您可以从第一个文件的面板(仅从标题/标题栏)拖动图标并将其应用到第二个文件的面板,如下所示: 您必须将图标放在第二个图标上才能使其工作 (you must place the icon over the second icon to make it work, I didn't make it overlap just for taking a clear screenshot) (您必须将图标放在第二个图标上才能使其工作,我没有让它重叠只是为了截取清晰的屏幕截图)

  4. Open a champagne and celebrate!打开香槟庆祝!

To change the file icon on all you files icons with the same extension:要更改具有相同扩展名的所有文件图标上的文件图标:

  • open Get Info panel file 1, that you want to change打开要更改的获取信息面板文件 1
  • open Get Info panel file 2, that you want to change to打开获取信息面板文件 2,要更改为
  • drag and drop icon from panel file 1 to panel file 2将图标从面板文件 1 拖放到面板文件 2
  • click Change All...单击全部更改...
  • with Finder open "Show View Options" or command + J使用 Finder 打开“显示视图选项”或 command + J
  • drag Icon size as you wish.根据需要拖动图标大小。 This force icons cache rebuild这强制图标缓存重建

You have to empty your cache for icons after you have changed the icon or switched the file association program.更改图标或切换文件关联程序后,您必须清空图标缓存。 Not sure the exact filename, but use it to empty both cache folders.不确定确切的文件名,但使用它来清空两个缓存文件夹。 ~/Library/Caches and /Users/User/Library/Caches ~/Library/Caches/Users/User/Library/Caches

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM