Loop apply an action to each text layers
To clarify this, I need to introduce my work:
For example, I have a file with different shapes and some text layers like this:


My goal is to make the text layers in each of these shapes are center aligned of them. Like this:

My way is to use the magic wand to create a selection below each text, then center it with the move tool.


Sometimes it has many gaps like this so I create an action (but it need to create the selection by magicwand first, anyway):

As you can see, I have to center every text layers one by one, and each time I have to create another selection. Anyway, I've found a topic that has similar with my tasks - thanks to c.pfaffenbichler that reduce a step to my action:
By the way, I need to upgrade my action because there are a lot of tasks, so I can't run the action for each text layer once a time. Can you help me to center every text base on the selection below it?
There also some text layers which don't need to center, I'll lock them all before run.
Thank you so much for helping me and have a nice day!
