I can easily do this the hard way - set every single refalias as a property on my script, and make and endless if-then-else chain. It tedious but it works.
I'd prefer an easier approach... is there any way to assign a pointer to these RefAliases? like an alias to an alias? or somehow assign a value to the aliases so I could say "assign this object to the RefAlias that has this unique keyword/value " etc? I'm open to any suggestions.