Here is a complete, example macro I just published that should show you how to do the complete workflow. Please let us know if this solves your question.
##Macro Library Rename Finder Selected Files With Sequential Number
Here is a complete, example macro I just published that should show you how to do the complete workflow. Please let us know if this solves your question.
##Macro Library Rename Finder Selected Files With Sequential Number