Add code to handle a script in a property def