you could do it like this:
string list $abc = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}
int $index = 0
foreach $tp in $explorer_selected_entities() {
string $newname = $tp.Name + $abc[$index]
if entity_exists('toolpath',$newname) {
$newname = new_entity_name('toolpath',$newname)
}
rename toolpath ${tp.Name} ${newname}
$index = $index + 1
if $index > 25 {
$index = 0
}
}