Or perhaps you can do something with the :
"New features implemented in A5 engine 5.05: (-> bugs&features)
str_for_entname(string,entity);
str_for_entfile(string,entity);
Sets the string to the WED name or to the file name of the given
entity.
syn_for_name(string);
returns the synonym of the entity with the given WED name. Names can
be assigned to entities through [Properties] in WED. This way,
entities placed in a level can now be accessed in WDL actions.
Example:... "
...but I haven't used them yet, so it's just an idea...