| From: | Michael Jaccoud |
| Date: | 20 Oct 99 at 22:25:27 |
| Subject: | Re: Filenumbering |
From: Michael Jaccoud <topgun@pop.ch>
Hallo Donald
Am 20-Okt-99 schrieb Donald Dalley
> From: Donald Dalley <ddalley@idirect.com>
>
> On 20-Oct-99, Michael Jaccoud wrote:
>>
>>>> /*Numbering*/
>>>> DO Nr=1 to 99
>>>>
>>>> IF (EXISTS('RAM:TEST') = 0)
>>>> THEN ADDRESS COMMAND 'makedir ram:test'
>>>> ELSE ADDRESS COMMAND 'makedir ram:test' || Nr + 1
>>>
>>> END
>
>> Ok, again:
>> I send one picture to a Paintprogram to convert a picture to an other
>> format. The whole script shoud only play once, if there is no file by now
>> in the ram it should save it as file.jpg. If file. jpg exists it should
>> save it as file.jpg1 and so on, but now it does an "endless" loop (cames
>> from DO Nr 1 TO 99) so it does the same thing 99 times, but I only want
>> it once, but with the next higher filenumber.
>
>> Any ideas?
>
> Michael: the way it is written, you are making 100 directories.
I know, and that isn't what I want to do!
> Why not just make the directory once,
To making directories was only to show what the target is (to get a new
directoryname with number +1 if a directory with the "normal" filename
exists)
I think I have not clearly explained what I'm trying for:
I will try it here again:
I work with movieshop and need a sort of a preview-picture from some scenes.
I can now export one picture of the anim but if I export later a second
picture from the same anim-file then it will have the same name as this
bevore. But the old one saved before should not be overwritten.
If the anim's name is "Hollyday" then I will send a preview to ImageFX,
there it will be converted and gets saved as "Holiday.jpg" now I need a
check before saving a new Picture and if "Holiday.jpg" exists then the new
picture should be saved as Holiday.jpg1 or something. But I don't know how
to create such a counter :(
Regards
--------------------------------------------------------
Best regards Return mail address:
Michael Jaccoud topgun@pop.ch
--------------------------------------------------------
--------------------------- ONElist Sponsor ----------------------------
??? Computer Questions ==> Free Answers From Live Experts ! ! !
go to EXPERTCITY.COM
<a href=" http://clickme.onelist.com/ad/expertcity15 ">Click Here</a>
------------------------------------------------------------------------
ARexx mailing list - No flames, no overquoting, no crossposting. Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com