from JascApp import *

def ScriptProperties():
    return {
        'Author': u'Jasc Software, Inc.',
        'Copyright': u'Copyright (c) 2004 Jasc Software, Inc.  All rights reserved.',
        'Description': u'',
        'Host': u'Paint Shop Pro 9',
        'Host Version': u'9.00'
        }

def Preset_AutoSmallScratchRemoval():
    return {
        'LowerContrastLimit': 0, 
        'RemoveDarkScratches': True, 
        'RemoveLightScratches': False, 
        'Strength': App.Constants.ScratchRemovalStrength.Aggressive, 
        'UpperContrastLimit': 50, 
        'GeneralSettings': {
            'ExecutionMode': App.Constants.ExecutionMode.Default, 
            'DialogPlacement': {
                'ShowMaximized': False, 
                'Rect': ((0,0), 0, 0)
                }, 
            'PreviewVisible': True, 
            'AutoProof': False, 
            'AutoActionMode': App.Constants.AutoActionMode.Match
            }
        }

def Do(Environment):
    # Auto Small Scratch Removal
    App.Do( Environment, 'AutoSmallScratchRemoval',         Preset_AutoSmallScratchRemoval())

