Re: Process all files in a text list?
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. |
----------------------------------------------------------------------