I have a solution that uses a script to export some records, change layout, and import the previously exported file into the new layout. Everything works find if I run locally.
When I run using Web Direct, it doesn't work. I change the script so that it required entering the file name. That's when I noticed that when I enter the file name, the file does not save. If I quit out of the window, THEN the file saves. Any idea as to how to force the file to save before the script gets to the step of importing the saved file?