Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Create a txt file in Extendscript

$
0
0

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...


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>