Hi, @Airy. It will be unresolved if you haven’t installed Time Machine Assistant. But now that you mentioned that, I think I'll add a comment with a link.
I have a use case where I want to eject external directly connected drives but leave a network share (which the macro offers to eject along with the others) connected...essentially eject all but one named drive. Modified the Switch segment as shown below. The network share Volume Name is hardcoded. There's probably a better way of doing this but it works for me, except that the share is ejected even though it's not identified in the popup. And the large display says 3 were unmounted (not four). ??
There's a "For Each" that appends names to the Local_drives variable -- the end result is what you are omitting your network volume from and what you see in the dialog.
But there's another "For Each" that does the ejection, and that's a new, different, list of mounted volumes:
Thanks. I don't understand why a list is built and then ignored, but I'm sure there is a good reason. Anyway, it turns out there's another "For Each" that monitors the ejection process, and yields