Re: How to naming files
Re: How to naming files
- Subject: Re: How to naming files
- From: Michelle Steiner <email@hidden>
- Date: Tue, 12 Dec 2000 09:03:22 -0800
On 12/11/00 11:04 PM, Peter Mathiessen <email@hidden> wrote:
>
My problem is how to make a script that counts and will name the files like
>
this: 001_001, 001_002, 001_003 and so on. If the files reach 001_999 the
>
script should continue with 002_001 ans so on.
>
>
I hope I making it clear here, hope someone know how to write the script.
repeat with part1 from 1 to 999
set firstHalf to formatAnumber(part1)
repeat with part2 from 1 to 999
set secondhalf to formatAnumber(part2)
set the FileName to firstHalf & "_" & secondhalf
--do something with filename
end repeat
end repeat
to formatAnumber(numberIn)
return text -3 through -1 of ("00" & numberIn)
end formatAnumber
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------