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

Help needed with a CC 2015 ScriptUI Problem.

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
TOPICS
Actions and scripting
890
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
Adobe
Community Expert ,
Jul 08, 2016 Jul 08, 2016

It opened for me with Win 10 and PS 2015.5:

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
Community Expert ,
Jul 08, 2016 Jul 08, 2016

Hang both Photoshop CC 2015 and CC 2015.5 on my windows 10 workstation. Photoshop flashes the  dialog.  Task manaher shows Photoshop getting less then 1% cpu details shows Photoshop as running 0thee I/O count  slowly increasing cpu time slowly increasing.  Photoshop UI is non responsive. esc does not break the script . If I click on Photoshop Display my machine beeps. If I skiploadind third party Plug-ins the script still make Photoshop non responsive. If I disable GPU in Photroshop Prreferences abd skip loading plugins its the sane story.

Capture.jpg

JJMack
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
Community Expert ,
Jul 08, 2016 Jul 08, 2016

Odd. I don't know if this will help, but try adding this at the beginning of the script for 2015.5

#target photoshop-100

or this for PS 2015

#target photoshop-90

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
Community Expert ,
Jul 08, 2016 Jul 08, 2016

Made no difference thanks but the still hang Phoroshop on my machine..

JJMack
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
Contributor ,
Jul 08, 2016 Jul 08, 2016

Is it happening from ESTK too? My Extension hangs PS 2015.2 every 20th or 30th start attempt. I have to kill PS in Win task manager. Try to comment out the code and put back part by part IMHO.

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
Advocate ,
Jul 09, 2016 Jul 09, 2016

I've tried on Mac and got this error:

DB 2016-07-09 at 13.07.09.png

Davide

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
Guide ,
Jul 09, 2016 Jul 09, 2016

It looks as if this could be the culprit:-

iconPath = new String($.getenv ("TEMP") + "/"); // try the OS TEMP directory

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
Community Expert ,
Jul 09, 2016 Jul 09, 2016

I have been editing image in floating windows for 20 years.  If I set  my Photoshop Preferences to edit in tabs the Script does not hang Photoshop and works in  CC 2015 and  CC 2015.5.  I  Have submmited a problem report ScriptUI hangs Photoshop CC 2015 and CC 2015.5 | Photoshop Family Customer Community

Capture.jpg

JJMack
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
Advocate ,
Jul 09, 2016 Jul 09, 2016

JJMack​, if memory doesn't fail me we've had this issue in past versions of Photoshop, with Adobe's own scripts (as well as third party's) breaking randomly if the document wasn't tabbed and/or edit in tabs wasn't in the Preferences.

Yet, as far as I remember, it was solved (don't ask me in which version, I can't say) – now it is back?! Ouch!

Davide

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
Guide ,
Jul 09, 2016 Jul 09, 2016
LATEST

That line

iconPath = new String($.getenv ("TEMP") + "/"); // try the OS TEMP directory

will cause the error that you got Davide as it creates an invalid path.

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