I want to refresh my palette based on the currenly active document(update icon buttons etc..) . I have done it for dialog based window(and it works) but when i call it for a palette based window, it appears and disappers in a fraction of second. So is there a way to call a palette based script from another script.?
I have already added #targetengine "session" to the code.