It is possible to execute ExtendScript from UXP at the moment, so we can also alert via doScript.
const { app, ScriptLanguage } = require('indesign') ;
alertUXP(`This is message from UXP`, `Alert title`) ;
/**
* alert via ExtendScript
* @Param {string} message
* @Param {string?} title
*/
function alertUXP(message, title) {
app.doScript(`alert(arguments[0], arguments[1])`, ScriptLanguage.JAVASCRIPT, [message, title]) ;
}
... View more