Add a method to set the project panel as active.
'app.project.activeItem' is very limited since it can either be an active viewer or an active item on the project panel. There's a workaround for open comps with 'app.activeViewer.setActive()' to make sure you are on the viewer but there's no workaround for the opposite. There is no command to make sure you are operating with the selected project panel items.
if I want to 'executeCommand()' on the project panel selected items, but the panel is not active. I'm basically defeated.
Constantin Maier commented
Maybe there is a workaround by using "app.project.showWindow()"?
Now, showing the project window does not necessarily make it active if it's already shown. However, when you hide it first and then show it again, it will be active:
Nevertheless, I agree, a dedicated way to do it would be nice!
Also, I'm not aware of a way to set the timeline panel active which would be very helpful as well.