How to get file object in Photoshop UXP

Hello,

Like this?

Regards