Need Help - Apply actions to respective empties.

Hi, Need help here.

I have a blend file named A.blend with 10 empties having naming as 1,2,3…etc and these 10 empties have indiviual random animation.

Now I created a new blend named B.blend with 10 empties with same naming as above but all are at static location 0,0,0.

I append the actions from file name A.blend into the current B.blend and applied the action to each empty object in file, it was a success.

Now my question, Is there a method or a script that can assign the actions to empty objects it in one go. No more select individual empty and apply action.

This will be help. Please Guide.
Thanking you.

You posted this question in the wrong thread. Can anyone move this to the other animation thread?