Photoshop UXP Selection

Hello!
Can you help me, how I can get information about selection on activeDocument by UXP: is selection exists, bounds?
Thanks…

Unfortunately you can’t do it with the DOM, right now. You need to use Alchemist/batchPlay: