What i'm doing is creating a small utility that generates actions. Entities are placed in WED and by default have no action applied to them. I'm trying to link the action i create using my utility, to the entity in WED.

I'm trying to do it programatically at the start of my script. I know the name of the action i generated, and which entity it must be linked to.

If there was a way to modify the .wmb file, and change the name of the action then it would be ok, but there isn't.