Copiar link para a área de transferência
Copiado
I have a script that I am running through a hot folder and when it is finished I would like to delete the file from it's folder. I have tried a few different things but to no avail I can not get it to work. Any suggestions? Or can this be done?
GOT IT. Thanks V. File should have been a variable.
var file = (File("Users/mycomputer/Desktop/Hot Folder/Layout.pdf"));
file.remove();
Copiar link para a área de transferência
Copiado
have you tried File.remove() ?
Copiar link para a área de transferência
Copiado
Here is what I was trying but get a File.remove is not a function.
var docname = activeDocument.name;
var layoutDoc = (File("/Users/mycomputer/Desktop/" + docname));
File.remove(layoutDoc);
Copiar link para a área de transferência
Copiado
GOT IT. Thanks V. File should have been a variable.
var file = (File("Users/mycomputer/Desktop/Hot Folder/Layout.pdf"));
file.remove();
Copiar link para a área de transferência
Copiado
Would you care to share how you set-up a hot folder... PC/MAC...??? Wanting to do the same thing...
Thanks
Copiar link para a área de transferência
Copiado
Use Automator folder action . You will have to learn some basic apple script but not to complicated.
Encontre mais inspiração, eventos e recursos na nova comunidade da Adobe
Explore agora