-
Attempt to use new File() in AE CS4
hi, I’m new to AE and I’m trying to debug an expression in javascript but I’m finding it difficult to get feedback what the thing is doing.
I tried the standard Javascript alert but AE says thees no such function so I tried writing to a file with new File(name). I know this is implemented because it’s in the CS3 docs, duik manages to do it and there’s a checkbox in the preferences which would be a bit silly if you couldn’t do so. Anyway it throws’ no constructor for type File’ or something like that.
I tried write()ing to the info window but either it didn’t work or possibly the written text was overwritten by the standard UI updates as the mouse moves (the expression runs as I move stuff).
Anyone help me? Whats a good way to get feedback from a script?
Thanksvar f = new File("c:\\not working.txt");
alert("I dont work either!");
write("what do ya know, this dont work");
writeLn("nor this");