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

Simple script hangs photoshop

Community Expert ,
Feb 20, 2012 Feb 20, 2012

One computer that I'm working on Dell Optiplex 960 with 4gb RAM is haning when I try and run a script.  I created just a simple on to resize and image and it won't do that.  Any ideas on what to look for to get this computer in line?

TOPICS
Actions and scripting
1.1K
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 ,
Feb 20, 2012 Feb 20, 2012

I forgot to mention the computer is running Win XP Pro. 

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 ,
Feb 21, 2012 Feb 21, 2012

It more like you fogot to Post the script. Post the script or create a  one step Image Size action...

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 ,
Feb 21, 2012 Feb 21, 2012

The script I want to run is more complicated than just a resize, but even a simple script like this resize script hangs photoshop:

#target photoshop

var docRef = activeDocument

docRef.resizeImage(800,undefined,150)

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
Guest
Feb 21, 2012 Feb 21, 2012

Looks like it should work so I understand the mystery.

If there is no active document (one must be selected I believe) when the script is run, it will through an exception.

Alternately, it may be time to reset preferences. Sounds like something is messed up.

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 ,
Feb 22, 2012 Feb 22, 2012
LATEST

One issue I just noticed was that I didn't define the units.  However, even without a resize, the orignial script was hanging when trying to save.  It would not run the PS supplied Image Processor script either.  Will check it out again today.  We've changed a lot of the permissions on the computer, so maybe it will work now.  I've got another computer running the same script for a time-lapse camera setup, so I might just use that computer to do all the processing and this computer that is giving me issues just to capture the image and save it to a server.

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