Since you're having alot of problems, send me a PM with your current theory on why its crashing so I can help you dive into this issue and get it fixed for you if possible!
@thesineater
No Problem Bud!
Here's a script with 3 different ways to save a file/folder.
Created with a File Resource path & Folder Resource Path selected by the user and a very useful regex to determine where the current Project Folder is based on Recording location (.xml folder) or compiled (Bot folder location)!
JS Code for Project Path: (Run in Execute Code Action)