Is it possible to select all visible layers in Photoshop, perhaps using a script? I see no way to do so in the Photoshop menu items.
Set the Layers Panel to sort based on
Attributes and then set the second drop down to
You can then shift-click to highlight the layers if needed.