• 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: Process all files in a text list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process all files in a text list?


  • Subject: Re: Process all files in a text list?
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 28 Aug 2001 08:04:27 -0700

On 8/28/01 7:41 AM, Rachel <email@hidden> wrote:

>The reason I need to refer to a list of files to process is that there are
>many more files that do not need the processing. Is this the right approach?
>Also, the text files are in folders below the folder containing the scripts.

*nod* This will keep you from having to open the DreamList document in
Tex-Edit Plus.

set currFolder to folder "Rachel:Project:Dreams:"
set currFolder to "Dora:Foo:"
set the fileList to read file (currFolder & "DreamList") using delimiter
return
set the fileList to reverse of the filelist --because you wanted to work
from back to front
repeat with FileToOpen in the fileList
tell application "Tex-Edit Plus"
open file (currFolder & FileToOpen)
--do scripts
close front window saving yes
end tell
end repeat

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: Process all files in a text list?
  • Next by Date: Re: processing time & stack overflow
  • Previous by thread: Re: Process all files in a text list?
  • Next by thread: Re: Process all files in a text list?
  • Index(es):
    • Date
    • Thread