🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #573

Re: ScriptUI

#573
From: Bob Stucky
Date: Tue, 13 Jan 2009 20:42
16 lines
1447 bytes
When you launch a script in PS, it executes, then the script engine dies.

When you make a modal dialog, the modal stops all processing in the script engine while it's showing, and it works.

For types "window" and "palette", that's not the case (modality). The script executes, puts up the window, then completes. When it completes, it destroys itself, and your windows close.

You can try opening your window or palette via BridgeTalk.

var bt = new BridgeTalk();
bt.target = "photoshop";
bt.message = "var w = new Window( 'palette', 'My Palette' ); w.add( 'statictext', undefined, 'This is a palette' ); w.center();.w.show();"
bt.send();

You can do that in PS (photoshop can send a bt message to itself). BridgeTalk uses a persistent engine to process BT messages, so that *should* work at keeping a palette open. I haven't tried it myself.

Bob
Technical Details
Message-ID: <59b78169.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b78169.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,f8278c074c1c8dcc
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bob Stucky" <rstucky@starband.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: ScriptUI
Message-ID: <59b78169.0@webcrossing.la2eafNXanI>
Date: Tue, 13 Jan 2009 12:42:41 -0800
References: <59b78169.-1@webcrossing.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit