Right, if you had to be able to make a melee attack, then the spell would never work, since you've already used your action to cast a spell. I guess maybe if you had a Scimitar of Speed? Actually no, not even then, since it says the attack has to be part of the same action!