I'm using ExtendScript .jsx scripts to automate a few things in After Effects. It gives me a lot of control, but I can't obviously see whether there's a property of app or app.project which tells me if the open project has edits since its last save. My script needs to know this to decide whether to automatically save to a new file if there are edits, or keep with the current file if there aren't.
I took a look into the After-Effects-CS6-Scripting-Guide.pdf. Looks like there is no flag that tells you if project needs saving. So the answer is: No.