assign a value to an attribute via a script