I should also mention require("photoshop").core.isModal() throws user canceled operation instead returning true or false. I would rather have some non-throwing status. E.g. enum. So I would not need to catch error and examine what kind of error it is.
1 Like