As part of a wider project, I need to know the time After Effects is started on each session. I was going to add a script to the startup folder that automatically creates a new file each time the app is run but have found a strange (windows?) problem...
Run the following script a few times:
Code: Select all
// get file
fName='tmp.txt'
f=File(fName)
// delete old file
if(f.exists)if(confirm("Delete file?"))f.remove()
// write new file
f.open('w','????','????')
f.writeln(Math.random())
f.close()
It's rather odd - any ideas!?
Thanks,
Dave