Issue with spaces in a name when using file.parent.name. How do I deal with %20 ?
// Get Finder folder name of footage items
var myFinderFolder = myItems[0].file.parent.name;
// Create main folder with name of Finder folder
var myCompFolder = app.project.items.addFolder(myFinderFolder);
// Place main folder in location of selected footage
myCompFolder.parentFolder = myItems[0].parentFolder;
// Create comp with name of the Finder folder
var myComp = app.project.items.addComp(myFinderFolder,1920,1080,1,60,24);
// Move comp to myCompFolder
myComp.parentFolder = myCompFolder;
It works great until I encounter a Finder folder with spaces in the name. In the AE folder it will look like this… "My%20Animated%20Character"
How can I add a line that looks for %20 and replaces it with a real space? Or is there a better way to deal with this? Also, are there other illegal characters I need to be aware of?
