Adding Comments to Items Selected in the Finder

Hi guys, does anyone have a good macro or macro idea for opening a file info box and adding a comment with a keyboard shortcut? I have tried using "click at specific location" action, as well as "click at found image" action, and they work some of the time, but not very reliably. Any help appreciated!

You can use KM to add a comment:

Or use part of this macro:

1 Like

Thank you for the resources! on first pass, this is what I did. Think that I am close, but I am still learning, and not sure where it is going wrong. Do you know why this is not working?

The Prompt for User Input box does come up, but the comment does not get set.

Screen Shot 2021-08-26 at 2.30.52 PM

Hey Jeff,

Firstly – Let me put my Moderator hat on for a minute.

When posting macros to the Keyboard Maestro forum please use these guidelines:

  1. Always post a Macro File.
  2. Always post an image.

This means people won't have to reinvent the wheel to test your macro, and that significantly improves the likelihood that someone will help you.

Testing not guessing produces the best result.

Folks generally won't download something they haven't eyeballed first, so an image of the macro is crucial.

How to Post Your Macro to the Forum

If you haven't read this it's worth a couple of minutes of your time.

Tip: How Do I Get The Best Answer in the Shortest Time?

On to your problem.

Since you didn't post the complete macro, we have no idea where %Variable%Path or %Variable%Comment are coming from or their content.

That first action is the only thing in the given macro that can set a comment.

Your For-Each is completely meaningless.

Comment is not a good variable name – particularly for a variable representing a Path. It has nothing whatsoever to do with a file comment.

In the loop you're setting the variable Comment to the %Variable%Comment%

Once again Comment in this context has nothing at all to do with Finder Comments.

Add Comments to Items Selected in the Finder v1.00.kmmacros (6.6 KB)

Keyboard Maestro Export

Take a peek at these if you haven't aready:

Set File Attribute action.

Finders Selection collection.