Photoshop ScriptUI Palette Persistence Issue"
Dear Adobe Scripting Team,
I am writing to report a persistent issue regarding ExtendScript (ES3) development in Adobe Photoshop [ Photoshop 2025, Windows 11 ]
The Goal: We are trying to create a simple, floating helper toolbar using Window("palette") that stays open while the user interacts with the canvas.
The Problem: Despite using #targetengine to create a persistent session, the palette window appears for a split second and immediately closes (disappears). It behaves as if the garbage collector is aggressively clearing the window object immediately after the script execution finishes, ignoring the global reference.
What We Have Tried (Technical Steps): To resolve this, we have attempted the following standard solutions, but none have worked:
-
Target Engine: Defined a unique #targetengine "my_unique_session_id" at the very top of the script.
-
Global Anchoring: We assigned the window object to a variable declared outside the IIFE/function scope.
-
Root Scope Injection: We tried anchoring the window object directly to $.global (e.g., $.global.myPalette = new Window(...)).
-
Resource String Method: We attempted to define the UI via a Resource String instead of the object method to ensure better persistence.
-
Installation Path: We placed the script directly into the Presets/Scripts folder and restarted Photoshop to run it as an application menu item, rather than via "Browse".
Current Behavior: The window flashes on the screen and vanishes instantly. No error messages are generated in the ESTK or console. Window("dialog") works perfectly (blocking mode), but Window("palette") fails to persist.
Request: Is there a known bug in the current version regarding Window("palette") persistence? Or has there been a change in security permissions/memory management that requires a specific property to keep non-blocking windows alive?
We tested this on a fully licensed version of Photoshop. Any guidance or workaround would be greatly appreciated.
Best regards,
Fatih
[personal information removed by moderator]
