Senior New York Democrats mounted a slashing attack yesterday against William F. Weld , the former Republican governor of Massachusetts who is considering a similar bid in New York , seeking to define Mr. Weld as a carpetbagger and political dilettante even before he makes up his mind about running .