Problem with attribute transfer to an external script