Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

P: ScriptUI hangs application

Community Expert ,
Jul 08, 2016 Jul 08, 2016

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

JJMack
Bug Fixed
TOPICS
macOS , Windows
298
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Nov 03, 2016 Nov 03, 2016
Try with CC 2017. I believe we fixed this issue.
Translate
7 Comments
Community Expert ,
Jul 09, 2016 Jul 09, 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
Translate
Report
Community Expert ,
Jul 09, 2016 Jul 09, 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
Translate
Report
Community Expert ,
Aug 09, 2016 Aug 09, 2016
Bug still in CC 2015.5.1
JJMack
Translate
Report
Adobe Employee ,
Aug 09, 2016 Aug 09, 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
Translate
Report
Community Expert ,
Aug 15, 2016 Aug 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
Translate
Report
Nov 03, 2016 Nov 03, 2016
Try with CC 2017. I believe we fixed this issue.
Translate
Report
Community Expert ,
Nov 07, 2016 Nov 07, 2016
LATEST
Seems to be fixed in cc 2017
JJMack
Translate
Report