-
Read a file with After Effects Script?
Hello,
I want to open a file on the system and alert its contents, but for a reason which is unknown to me, the following script returns a blank alert box.
I know that opening a .jpeg will return a bunch of characters and weird stuff, but that is what I actually want. I want the “source code” of the file.
Maybe there is another workaround…. my goal is to get the binary data of the file.
Thank you.
var openFile = File.openDialog("r");
var content = openFile.read();alert(content);