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

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/


  • Prev by Date: Re: PLEASE HELP ... Photoshop action scripting
  • Next by Date: Scripting Newbie
  • Previous by thread: Re: PLEASE HELP ... Photoshop action scripting
  • Next by thread: Re: Process all files in a text list?
  • Index(es):
    • Date
    • Thread