how can I create a script that develops an object of a certain type and class and automatically gives it a name and number. The name I want via info palette as a prefix type, followed by a sequential number. Of course there should also be an option to reset the number so that I can add again to number.
Thanks for the help
This version includes the ability to add a prefix.
If you hold down the Command Key when you click on a highlighted object, you will not get two dialog boxes, the first will ask for the number to use for that object, the second will ask for the Prefix to use. The prefix will then be used for all future objects until you change it.
The number is reset to 1 each time you run the script. The prefix is reset to nothing (empty string) each time the script is run.