Help needed

Hi there, i’m a new member
i have a specific folder and inside many folders, all containing text documents. i want to open all those documents
I want to make a script that do the following:
Open that specific folder, open all the enclosing files, not all of them at once, one by one, meaning when one closes, the following opens
How do i manage this?

Well, my Steelers got whupped by a pretty good team so I can watch the Super Bowl with just one eye and do this with the other:

property rootFldr : "Macintosh HD:Projects:"

traverse(alias rootFldr)

on traverse(a)
	tell application "Finder"
		set folderL to every folder of a
		set fileL to every file of a
	end tell
	
	repeat with f in folderL
		traverse(f)
	end repeat
	
	repeat with f in fileL
		try
			ignoring case
				if text -4 through -1 of (f as text) is ".txt" then
					tell application "TextEdit"
						open f
						-- do something
						close document 1
					end tell
				end if
			end ignoring
		end try
	end repeat
end traverse

Hope that’s what you’re looking for…

  • Dan