Skip to content

PowerAlto does not support Extended Tag Colors #10

@scalhoon-apfc

Description

@scalhoon-apfc

Code Solutions to Problem

PaTag.Class.ps1
########################## # GetColorName [string] GetColorName([string]$Color, [string]$ReturnedType) { $Mapping = @{} $Mapping.color1 = 'Red' $Mapping.color2 = 'Green' $Mapping.color3 = 'Blue' $Mapping.color4 = 'Yellow' $Mapping.color5 = 'Copper' $Mapping.color6 = 'Orange' $Mapping.color7 = 'Purple' $Mapping.color8 = 'Gray' $Mapping.color9 = 'Light Green' $Mapping.color10 = 'Cyan' $Mapping.color11 = 'Light Gray' $Mapping.color12 = 'Blue Gray' $Mapping.color13 = 'Lime' $Mapping.color14 = 'Black' $Mapping.color15 = 'Gold' $Mapping.color16 = 'Brown' $Mapping.color17 = 'Olive' $Mapping.color18 = '' $Mapping.color19 = 'Maroon' $Mapping.color20 = 'Red-Orange' $Mapping.color21 = 'Yellow-Orange' $Mapping.color22 = 'Forest Green' $Mapping.color23 = 'Turquoise Blue' $Mapping.color24 = 'Azure Blue' $Mapping.color25 = 'Cerulean Blue' $Mapping.color26 = 'Midnight Blue' $Mapping.color27 = 'Medium Blue' $Mapping.color28 = 'Cobalt Blue' $Mapping.color29 = 'Violet Blue' $Mapping.color30 = 'Blue Violet' $Mapping.color31 = 'Medium Violet' $Mapping.color32 = 'Medium Rose' $Mapping.color33 = 'Lavender' $Mapping.color34 = 'Orchid' $Mapping.color35 = 'Thistle' $Mapping.color36 = 'Peach' $Mapping.color37 = 'Salmon' $Mapping.color38 = 'Magenta' $Mapping.color39 = 'Red Violet' $Mapping.color40 = 'Mahogany' $Mapping.color41 = 'Burnt Sienna' $Mapping.color42 = 'Chestnut'

Set-PaTag.ps1
[Parameter(Mandatory = $False, Position = 1)] [ValidateSet('Red', 'Green', 'Blue', 'Yellow', 'Copper', 'Orange', 'Purple', 'Gray', 'Light Green', 'Cyan', 'Light Gray', 'Blue Gray', 'Lime', 'Black', 'Gold', 'Brown', 'Olive', 'Maroon', 'Red-Orange', 'Yellow-Orange', 'Forest Green', 'Turquoise Blue', 'Azure Blue', 'Cerulean Blue', 'Midnight Blue', 'Medium Blue', 'Cobalt Blue', 'Violet Blue', 'Blue Violet', 'Medium Violet', 'Medium Rose', 'Lavender', 'Orchid', 'Thistle', 'Peach', 'Salmon', 'Magenta', 'Red Violet', 'Mahogany', 'Burnt Sienna', 'Chestnut')] [string]$Color,

Tag Colors
Tag Colors Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions