Reply
Problem with batch process
Old 03-15-2005, 02:34 AM Problem with batch process
Junior Talker

Posts: 1
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.

Last edited by kimlb : 03-17-2005 at 12:28 AM.
kimlb is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Reply     « Reply to Problem with batch process
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12496 seconds with 13 queries