I have created a small PSP9 script that changes the resolution of large images to 1024x768 pixels. I'm able to run this script from the PSP toolbar (for one picture). However, when I attempt to run it from File -> Batch -> Process, it doesn't work. I don't get an error message, but the larger resolution stays the same. I have played around with the different settings, but still nothing happens when trying to run from the file menu (doesn't work for one/more file(s), no difference if I have the picture opened in PSP at the same time).
Has anyone experienced this? I don't know any Python (?), but here's the code of the script:
Code:
from JascApp import *
def ScriptProperties():
return {
'Author': u'Kim L. Braadland',
'Copyright': u'',
'Description': u'Changes larger picture sizes to 1024 x 768',
'Host': u'Paint Shop Pro 9',
'Host Version': u'9.01'
}
def Do(Environment):
# EnableOptimizedScriptUndo
App.Do( Environment, 'EnableOptimizedScriptUndo', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})
# Resize
App.Do( Environment, 'Resize', {
'AspectRatio': 1.33333,
'CurrentDimensionUnits': App.Constants.UnitsOfMeasure.Pixels,
'CurrentResolutionUnits': App.Constants.ResolutionUnits.PixelsPerIn,
'Height': 768,
'MaintainAspectRatio': True,
'Resample': True,
'ResampleType': App.Constants.ResampleType.SmartSize,
'ResizeAllLayers': True,
'Resolution': 180,
'Width': 1024,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Silent,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,1),1)
}
})
[Edit 03/16/05 : Problem solved, started working from the File menu, after I had run one of the supplied script that come installed with PSP from File -> Batch -> Process...]
Thanks in advance,
kimlb.