For Each Action now has its own Progress Bar KM10

I missed this and I suspect I'm not the only one. The For Each Action in KM10 now has an inbuilt Progress Bar that is off by default, but just needs to be enabled with the Gear Menu:

image

Screen Recording 2022-02-08 at 22.53.02-Animated GIF Small

12 Likes

Say whhaaaa??? (Runs to computer to check this)

Thanks for posting this, I had no idea this existed. At least 3 times a week I wonder how many things KM has/does that I will never actually know about :sweat_smile:

4 Likes

Are there other actions with this feature?

I think the only Action that has it inbuilt is the For Each - which makes sense as it is by nature an Action of steps.

KM10 also has a dedicated Display Progress Action which can be used at stages in a Macro to show progress. The dedicated Display Progress Action is more configurable. Its title can even be a Variable so, its title can change during the progress.

The inbuilt Progress Bar in the For Each Action has a fixed title which can’t be changed. But it’s great that it is so easy to enable - by just using the gear menu. I think it will be useful for the building stages of a Macro as a kind of test that the Action is working. Later I think I would replace it with the dedicated Display Progress Action so that I could have more control over its title.

1 Like

Thanks for pointing this out. I didn't know about it either.

2 Likes

I missed it too! Even if this is not needed for a final macro it could be useful during development and debugging.

Thanks for sharing this, @Zabobon.

2 Likes

It's interesting just how many more Actions I had to bolt on to do this (i.e. to use the Display Progress Action rather than the inbuilt gear enabled one).

The inbuilt For Each Progress automatically knows how many steps to take. So, to replace with a standard Display Progress Action, I had to work out how to add up the number of steps (depending on how many items in the Finder were selected or whatever other For Each task I might be doing). And then make each step a percentage of the total. That all required quite a lot of Actions. Anyway, included below for your interest is the demo I made. The advantage is that the title of the Progress Bar is my choice and it can indicate more info (in this case the percentage).

So, all in all it shows how convenient the inbuilt For Each Progress is.

Screen Recording 2022-02-09 at 12.33.33-Animated GIFF 640 12fps

EXAMPLE- For Each Progress WIth Custom Title.kmmacros (6.6 KB)

Click to show Macro

EXAMPLE- For Each Progress WIth Custom Title

4 Likes

That's a great find @Zabobon!

I checked in the KM10 release note and this feature is listed - but who knew??

The other day I was contemplating adding a progress bar to one of my more complicated macros: it has 3 For Each actions, one inside the other and I gave up on the idea since I'd have to do a lot of extra work setting up the progress bars - just as you described.

So after reading about your discovery, I took all of 30 seconds to edit my macro and as if by magic I can now see how it is progressing. So a big thank you!

The only downside (as you said) is that you can't set the progress bar title so it's not immediately obvious which For Each action it refers to.

But I've had a thought about that and it is a feature request to @peternlewis: can the text that appears in the built-in progress bar be taken from the name of the For Each action, so that by renaming the action it would make it obvious which For Each the progress bar belongs to?

4 Likes

I was thinking the same. Having the inbuilt For Each Progress Bar display whatever the For Each Action has been named would be great.

4 Likes

Noted.

Sorry, I have not gotten back to posting tips about the v10 release, although I didn't include the Progress Bar in my list of tips I should post about so it is good that this topic was made.

4 Likes

I've been enjoying that since updating to KM 10. I have several (almost) daily for each macros I run, and that's been incredibly helpful and satisfying to watch running them.

3 Likes