I think he wanted it as an action. What I would do with this script if I were him would be alt r >>> file >>> unload.