Hey, glad that everything worked out at the end!
Sorry for the confusion, I should probably add a message that you need to have an opened project to use the script
Happy holidays!