Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Deleting a palette form a Session Targetengine

$
0
0

Hi all,

 

Does anyone know how to delete a palette from a sessions memory.

I have a palette which after it closes I want that it should remove itself from the session's memory.

What would I do to the script below so that it does this.

I understand why the below script doesn't work but I don't know how to fix it.

 

Regards

 

Trevor

 

#target indesign
#targetengine Trevor
var w = Window.find ("palette", "My Palette")
if (w) w.show()
else
{    alert("new window");    var w = new Window ("palette", "My Palette", [50,50,300,300]);    var e = w.add('edittext',[50,50,200,200])    }
w.onClose = function (){w.remove(e); w = null};
w.show();

Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>