Finder: How to erase the comments from thousands of documents with just a few clicks?

I used to add comments on files (i.e. right click a file, and the input information in the Comment section). Now I have changed to using an Adobe program to input metadata.

I no longer need the information in the Comment section and I want to erase them all because they are affecting my search (because those comments will be searched too and I don't need that).

I know I can open each file individually and erase the comment section. But I have around 5,000 files. I can't afford to do it one by one.

Is there an approach which allows me to erase the comments in those 5,000 files with just a few clicks?

iMac, OS X Yosemite (10.10.1)

Posted on Jan 3, 2016 9:44 AM

Reply
3 replies

Jan 30, 2016 5:37 AM in response to patrick07124

Sorry. Please Ignore my first reply, I left something out !


Using Automator : create a Service :

Open Automator, select New : Command-N

Select : Service, then click Choose

Toggle the : Services receives selected box :

User uploaded file

Select : files or folders :

User uploaded file

Then toggle the any application box :

User uploaded file

Select Finder.app :

User uploaded file

Once done :

User uploaded file

Start to build the Service :

From Actions, select File & Folders, then double click, or drag the action : "Set Spotlight Comments for Finder items"

into the area labelled : Drag actions or files here to build your workflow.

User uploaded file


Then click on Variables, select Text & Data, then drag the item "Text" into the "Set Spotlight Comments for Finder items" action :

User uploaded file

User uploaded file

Uncheck the box : Append to existing comments


Save the Service : Command-S

I called the Service "Clear_Spotlight_Comments"

The Service is now available through a Finder window :

User uploaded file

Clicking on "Clear_Spotlight_Comments, will clear comments from single, or multiple selections in the Finder window.

Jan 30, 2016 4:38 AM in response to patrick07124

Using Automator : create a Service :

Open Automator, select New : Command-N

Select : Service, then click Choose

Toggle the : Services receives selected box :

User uploaded file

Select : files or folders :

User uploaded file

Then toggle the any application box :

User uploaded file

Select Finder.app :

User uploaded file

Once done :

User uploaded file

Start to build the Service :

From Actions, select File & Folders, then double click, or drag the action : "Set Spotlight Comments for Finder items" into the area labelled : Drag actions or files here to build your workflow.

User uploaded file


Then click on Variables, select Text & Data, then drag the item "Text" into the "Set Spotlight Comments for Finder items" action :

User uploaded file

You should now have :

User uploaded file

Save the Service : Command-S


User uploaded file

Or, use whatever name you like.

The Service will now be available through a Finder window :

User uploaded file

Clicking on "Clear_Spotlight_Comments", will clear comments from single, or multiple selections in the Finder window.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Finder: How to erase the comments from thousands of documents with just a few clicks?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.