Use a temporary file and rename prodedure, anticipating non-task scripts.