closing a file after saving a copy
I am working on a solution where I have a template file. I have a script that runs on open that checks if it is the template. If it is, the user is asked to input the filename and it saves itself as a copy with that filename and opens the new file. That part works until I put a "close current file (template)" step at the end. If I have that step the new file does not open and the script hangs. Is there a way around this?