I am using AE 2023 and have written a script that sets an output folder and sends a comp to the render queue. What I’d like to do is add some code to close that comp, which is the active comp. From my research it seems there is no close method for app.project.activeItem.
I thought the line
would work to replicate the relevant keyboard commands, yet nothing happens.
Can anyone help with this?