from PSPApp import *

def ScriptProperties():
    return {
        'Author': u'',
        'Copyright': u'',
        'Description': u'',
        'Host': u'PaintShop Pro',
        'Host Version': u'22.00'
        }

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

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 3, 
            'Left': 3, 
            'Right': 3, 
            'Symmetric': True, 
            'Top': 3, 
            'Color': (22,22,24), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 1, 
            'Left': 1, 
            'Right': 1, 
            'Symmetric': True, 
            'Top': 1, 
            'Color': (239,234,231), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 3, 
            'Left': 3, 
            'Right': 3, 
            'Symmetric': True, 
            'Top': 3, 
            'Color': (22,22,24), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 10, 
            'Left': 10, 
            'Right': 10, 
            'Symmetric': True, 
            'Top': 10, 
            'Color': (239,234,231), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 3, 
            'Left': 3, 
            'Right': 3, 
            'Symmetric': True, 
            'Top': 3, 
            'Color': (22,22,24), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 1, 
            'Left': 1, 
            'Right': 1, 
            'Symmetric': True, 
            'Top': 1, 
            'Color': (239,234,231), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 3, 
            'Left': 3, 
            'Right': 3, 
            'Symmetric': True, 
            'Top': 3, 
            'Color': (22,22,24), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 10, 
            'Left': 10, 
            'Right': 10, 
            'Symmetric': True, 
            'Top': 10, 
            'Color': (96,96,98), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 3, 
            'Left': 3, 
            'Right': 3, 
            'Symmetric': True, 
            'Top': 3, 
            'Color': (22,22,24), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 1, 
            'Left': 1, 
            'Right': 1, 
            'Symmetric': True, 
            'Top': 1, 
            'Color': (239,234,231), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 3, 
            'Left': 3, 
            'Right': 3, 
            'Symmetric': True, 
            'Top': 3, 
            'Color': (22,22,24), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 10, 
            'Left': 10, 
            'Right': 10, 
            'Symmetric': True, 
            'Top': 10, 
            'Color': (211,196,193), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # Magic Wand
    App.Do( Environment, 'MagicWand', {
            'General': {
                'Mode': App.Constants.SelectionOperation.Add, 
                'Antialias': True, 
                'Feather': 0, 
                'SampleMerged': False
                }, 
            'MatchMode': App.Constants.MatchMode.RGBValue, 
            'Contiguous': True, 
            'Point': (97.5,23.5), 
            'Tolerance': 5, 
            'AntialiasType': App.Constants.AntialiasType.Outside, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # Alfs Border FX_Mirror Bevel
    App.Do( Environment, 'Alfs Border FX_Mirror Bevel', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }, 
            'DefaultProperties': []
            })

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

    # Magic Wand
    App.Do( Environment, 'MagicWand', {
            'General': {
                'Mode': App.Constants.SelectionOperation.Add, 
                'Antialias': True, 
                'Feather': 0, 
                'SampleMerged': False
                }, 
            'MatchMode': App.Constants.MatchMode.RGBValue, 
            'Contiguous': True, 
            'Point': (72.5,4.5), 
            'Tolerance': 5, 
            'AntialiasType': App.Constants.AntialiasType.Outside, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }
            })

    # AAA Frames_Foto Frame
    App.Do( Environment, 'AAA Frames_Foto Frame', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((22,0,0),1)
                }, 
            'DefaultProperties': []
            })

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

