Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch error today where there was none yesterday...

Status
Not open for further replies.

Andi99

Technical User
May 26, 2006
4
US
Hi everyone. I hate to introduce myself with a perplexing problem but Tek Tips appears to be the best PSP forum around and I'm stumped. I need this to add a thumbnail feature to my site and I've done several pages successfully and now PSP just stopped working overnight.

I've been using PSP since v 4.12 and purchased v 10 yesterday so I could batch process scripts. The really weird thing is that it worked perfectly yesterday (reduce colors to 16) and now is throwing an error claiming .gif is not a supported document. I tried converting the gifs to psp thinking if it worked there I could convert back to gif. I've restarted the program, rebooted the computer and overwrote the .gif files with PSP v. 10 and my old PSP v. 7.

Here's the script that worked yesterday but now does not:
Code:
from PSPApp import *

def ScriptProperties():
    return {
        'Author': u'',
        'Copyright': u'',
        'Description': u'',
        'Host': u'Paint Shop Pro X',
        'Host Version': u'10.00'
        }

def Do(Environment):
    # EnableOptimizedScriptUndo
    App.Do( Environment, 'EnableOptimizedScriptUndo', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((10,0,1),1)
                }
            })

    # Decrease Colors to 16
    App.Do( Environment, 'DecreaseColorsTo16', {
            'Boost': False, 
            'BoostAmount': 1, 
            'ReductionMethod': App.Constants.ReductionMethod.NearestColorMatch, 
            'PaletteMethod': App.Constants.PaletteMethod.OptimizedMedianCut, 
            'ReduceBleeding': False, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((10,0,1),1)
                }
            })

    # FileSave
    App.Do( Environment, 'FileSave', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.AllAlways, 
                'Version': ((10,0,1),1)
                }, 
            'DefaultProperties': []
            })

Andi
 
Sigh, there's a check box "stop on error" which I unchecked and this eliminated the error. Sorry to have bothered everyone with this, hopefully this post will inform someone of this quirk in the future.

When I finish this project I'll come back and see if I can solve someone else's problems. Usually I manage to work through mine by myself, but this project has some urgency to it. Thanks for listening. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top