Preparing resource scripts