Process all files in a text list?
Process all files in a text list?
- Subject: Process all files in a text list?
- From: Rachel <email@hidden>
- Date: Tue, 28 Aug 2001 07:54:19 -0600
What is the best way to run a script on every file in a text list then save
that file?
Is there a way to "open a folder as default folder" and then every file
opened would be relative to that folder?
This is what I cobbled together, but I don't know how to manage the 2 open
windows or how to assemble the filename string.
set currFolder to "Rachel:Project:Dreams:"
tell application "Tex-Edit Plus"
activate
open file (currFolder & "DreamList")
repeat with i from (count lines of window 1) to 1 by -1 -- process
backwards thru filenames
open (currFolder & (line i of window 1))
--do scripts
close front window saving yes
end repeat
end tell
Problem being that it opens 33 "untitled "windows.
Thanks for any help
Rachel
http://www.gnarlodious.com/