Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!helios.ee.lbl.gov!nosc!crash!orbit!pnet51!koleman From: koleman@pnet51.orb.mn.org (Kurt Koller) Newsgroups: comp.sys.amiga Subject: Re: Command sequence help needed... Message-ID: <2500@orbit.cts.com> Date: 25 May 90 13:18:19 GMT Sender: news@orbit.cts.com Organization: People-Net [pnet51], Minneapolis, MN. Lines: 51 X-Local-Date: 25 May 90 06:18:19 PDT thomas@eleazar.dartmouth.edu (Thomas Summerall) writes: >Hi, I'm trying to write a command sequence that will rename single frames saved >from a deluxepaint animation so they can be loaded and compressed by SA4D. >Dpaint saves each frame as framename001 framename002, etc... SA4D needs >framename.001.image framename.002.image, etc... > >So, I want to make a command "chanim" that will take as arguments the name >of the anim and the number of frames, and convert the names. The looping works >fine using an environment variable and the skip function. The problem is >appending the current value of the environment variable to the name. The >statement looks like this: > >.key animname,animnum >setenv temp 1 >... >(looping stuff deleted) >... >rename 00 to .00.image >... >(increment temp and loop) > >I get an error because the sequence looks for a file named "animname00" >can I use my counter as part of the file name? If not, how can this be done? >Am I missing the obvious? If you have the "move" command, it's really simple. I think it's an ARP deal, and if it isn't, it's very PD. If you had all the .00x files in one directory, with nothing else, it would require: move * *.image If you had other stuff in the directory, something else would have to be added, like: move *.0?? *.image The top example I use always, like to append .pic to a bunch of pictures, etc. The bottom statement I haven't tried, but it should work (maybe) . > >Thanks... >Thomas Summerall >thomas@eleazar.dartmouth.edu ============================================================== | | Kurt Koller - Graphic MicroSystems - (612) 228-0127 | | // | UUCP: {amdahl!bungia, crash}!orbit!pnet51!koleman | | \X/ | INET: koleman@pnet51.orb.mn.org | | | ARPA: crash!orbit!pnet51!koleman@nosc.mil | ============================================================== "I do not feel pleasure. I am only an android."