Save the script as a .jsx file and run it from the File/Script command within After Effects.
1 person found this helpful
AE scripts do not run directly from ESTK. Basically ESTK is merely an editor with syntax highlighting, but it can't conenct with AE like it would with PS, ID or other CS apps. As Andrew said, you need to run the script from inside AE.