To define a subfolder in the user folder, you need to use the "~" to reference the user folders. You should also define the path as a folder like this:
var userFolder = new Folder('~/desktop/');
To define a subfolder in the user folder, you need to use the "~" to reference the user folders. You should also define the path as a folder like this:
var userFolder = new Folder('~/desktop/');