Hey!
im trying to create a script that creates a txt file but i can't do that...
that is the function code:
var scriptFolderPath = File($.fileName).path; // the URI of the folder that contains the script file var TimerFolderPath = scriptFolderPath + encodeURI("/ProjectTimers_sources"); // the URI of the folder for your script resources StartButton.onClick = function(){ var JFile = new File(TimerFolderPath + encodeURI("/File.txt")); var content="That is a text file"; File.write(content); alert("File created!"); }
and it doesn't creates any file...