Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Need scriptUI-expert's advice on proper implementation of Photoshop scriptUI dialog

$
0
0

Hello Davide,

 

Thank you for your reply.

When I wrote this script I was building a panel/toolbar in infigurator and executed separate script-files from the buttons in the flash-based toolbar. In the original script the scriptUI was not part of a function. When the script was called it would start with the dialog and the 'real' functions were executed by the scriptUI button events.

 

I'm recreating the toolbar in HTML5 in Brackets which does a javascript/evalScript call to the hostscript.jsx containing all my jsx photoshop functions.

$("#stNew").click(function () { csInterface.evalScript('makePanelWindow()'); });

 

In the scope of the hostscript.jsx the scriptUI wont be conveniently deleted at the end of the script.

 

The window.find() is a remainder of something I tried. Since the window object didn't get deleted I figured it would be best to reuse it.

Later it became a check to check what would happen if w was null(ed).

 

Patrick


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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