Skip to main content
JJMack
Community Expert
Community Expert
July 8, 2016

P: ScriptUI hangs application

  • July 8, 2016
  • 7 답변들
  • 294 조회

I have a Photoshop script written by Copyright (c) 2006 Rags Gardner.   With his permission I reworked his script to generate Photo Collage Template compatible with my Photo Collage Toolkits populating scripts.  The Script work with Photoshop CS2 through CC 2014. The script will also work in CC 2015 if launched by the JSX Launcher extension.  However if launch via menu File>Scripts>CollageTemplateBuilder in CC 2015 and CC 2015.5 the script dialog briefly flashes in Photoshop window  and Photoshop is hung and must be terminated via the windows task manager.  Is there a ScriptUI expert that is willing to help find where the problem is?

http://www.mouseprints.net/old/dpr/CollageTemplateBuilder.jsx

이 주제는 답변이 닫혔습니다.

7 답변

JJMack
Community Expert
JJMackCommunity Expert작성자
Community Expert
November 7, 2016
Seems to be fixed in cc 2017
JJMack
Tom Ruark
Inspiring
November 3, 2016
Try with CC 2017. I believe we fixed this issue.
JJMack
Community Expert
JJMackCommunity Expert작성자
Community Expert
August 15, 2016
As I wrote I did not write that script. I only  change the way the template PSD file is created if  there  are 53 or fewer images.  The Scripts dialog behavior is over my head.  I only hack at Photoshop scripting.  I can change the code to delay closing the icon png document.  However, this bug hangs  Photoshop and it should be addressed.   That is why I advise users to use CC 2014 not to use CC 2015 or CC 2015.5.  CC 2015.5 has an additional scripting bug and some of my other scripts fail to work correctly in CC 2015.5
JJMack
Community Manager
August 9, 2016
Hi John,

I've narrowed this down to the icon png that is being saved and closed before the scriptUI window is invoked.  If you comment out the close() call, it works (though you are left with the open doc).  I've also tried instead using a jpeg/tiff with the close() call and that worked.  

Given that, I am not sure what the cleanest workaround is for your script.  You could defer closing the icon document until the cleanUp() function call. Or, you could use another file format (jpeg and tiff have worked so far).

I'll open a ticket for an engineer to look at this so we can get it fixed. Thanks for reporting this!

Eric
JJMack
Community Expert
JJMackCommunity Expert작성자
Community Expert
August 9, 2016
Bug still in CC 2015.5.1
JJMack
JJMack
Community Expert
JJMackCommunity Expert작성자
Community Expert
July 9, 2016
Adobe's sample  script  ColorPicker.jsx in the Adobe ExtendScript Toolkit CC SDK dialog also just flashes  and the script terminates however it does not hang Photoshop. ColorSelector also fails and opens the extendedtoolkit opens to debug but the source is empty. Their dialogs show briefly and the scripts end.  If launched  them from the JSX Launcher Photoshop extensions the scripts work.
JJMack
JJMack
Community Expert
JJMackCommunity Expert작성자
Community Expert
July 9, 2016
I have been Editing Images in floating windows for 20 years.  I much prefer editing images where I can see images and use more than one display.   If I set my Photoshop Preferences to Edit In Tabs the Script Dialog will display correctly and the script works in CC 2015 and CC 2015.5.
JJMack