Hey Mariano, there is no such direct object access as 'items'.
What you need to do instead:
1. Loop through all project items or some specific of your choice (containing in some project panel folder or selection)
2. Check if the type of an item is a comp.
3. Do the action as above.