Checking panel visibility
Hello!
I am trying to write a script that searches/replaces text in the name list in the Artboards panel. After the replacement is done, the name list needs to be refreshed so that the new names are displayed. I do this with the next trick:
function reopenPanel() {
// Illustrator UI trick: Reopen Artboards panel to refresh names
app.executeMenuCommand('Adobe Artboard Palette'); // close
app.executeMenuCommand('Adobe Artboard Palette'); // open
}But for this purpose it is necessary that at the start of the script the Artboards panel was already open and displayed on the screen. Is there any way to check if the panel is open and visible on the screen?
