• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to naming files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Full window Path
  • Next by Date: Re: Apple System Profiler
  • Previous by thread: Full window Path
  • Next by thread: [X-POST] External Menu in FMP
  • Index(es):
    • Date
    • Thread