@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)
if ((project_path()).indexOf("appslocal") >= 0) {
VAR_PROJECTPATH = (project_path()).match(/(.*)(?:appslocal)[\/\]/)[1];
} else if ((project_path()).indexOf("appsremote") >= 0) {
VAR_PROJECTPATH = (project_path()).match(/(.*)(?:appsremote)[\/\]/)[1];
} else {
VAR_PROJECTPATH = (project_path()).match(/(.*)[\/\]/)[1];
}
File Write/Location example:
0_1555849613606_SaveToFile.xml