Copy link to clipboard
Copied
Hi all,
I'm trying to understand how to properly write a few lines of code involving Folder.userData.
When I declare a folder path which of the following is correct?
var myFolderPath = Folder.userData + encordeURI("/MyFolder");
var myFolderPath = Folder.userData.absoluteURI + encordeURI("/MyFolder");
var myFolderPath = Folder.userData.relativeURI + encodeURI("/MyFolder");
They all seem to work. Which is the best choice though?
Then, I'll continue with the following:
var myFolder = new Folder(myFolderPath);
Since it's a Folder object, I think I'd do it this way:
var myFolderPath = Folder.userData.path + "/" + Folder.userData.name + encodeURI("/myFolder");
Copy link to clipboard
Copied
Since it's a Folder object, I think I'd do it this way:
var myFolderPath = Folder.userData.path + "/" + Folder.userData.name + encodeURI("/myFolder");
Copy link to clipboard
Copied
Hi Dan, thank you for answering!
It looks like any of the following return the same string:
Folder.userData.path + "/" + Folder.userData.name
Folder.userData.absoluteURI
Find more inspiration, events, and resources on the new Adobe Community
Explore Now