Skip to main content
Known Participant
August 25, 2015
Answered

Create a simple txt file from extendscript.

  • August 25, 2015
  • 1 reply
  • 3355 views

run.txt file not created in c drive.???

  var myFile=new File("/C/run.txt");

  var content="ABCDEF";

  myFile.write(content);

This topic has been closed for replies.
Correct answer Mathias Moehl

maybe

var myFile=new File("C:\\run.txt");

?

Also make sure that the AE preference "Allow scripts to write files and access network" is enabled.

1 reply

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
August 25, 2015

maybe

var myFile=new File("C:\\run.txt");

?

Also make sure that the AE preference "Allow scripts to write files and access network" is enabled.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Known Participant
August 26, 2015

Hi mathias

I need little help on render queue thing. Pop up an alert or run some instructions, when an item is rendered instantly.

Like below example


var numItems=app.project.renderQueue.numItems;

for(var i=1;i=numItems;i++){

   

    var currentRenderStatus=app.project.renderQueue.item(i).status;

       

    if(currentRenderStatus==RQItemStatus.DONE){

       

    alert("Item"+i+"Done");

   

    }

}

Thanks in advance

Participant
October 18, 2022