script a selected folder info

I am having difficulty making a script that will take a selected folder (not opened) and transfer the folder name as well as all subfolders and file names in those folders to TextEdit. Anyone have any suggestions

That’s a fairly abstract request. What kind of information do you want to display? just file names, or paths? or paths from the selected folder?

it’s trivial to get a list of file paths:

which can then be passed to Text Edit in a number of ways:


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

but I’m guessing that’s not quite what you want…

With a little more code it probably is:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]