: Actually I would prefer to do this is in SimpleText but apparently SimpleText
: isn’t scriptable? Anyway, I just want to put a list of all the names of
: all the files in a folder (including subfolders) into a text box in Quark.
: If it could be a vertical list instead of running on that would be even
: better.
AHA! What you need is FileName List Compiler. Look for it in ScriptBuilders, here at MacScripter It captures all the items’ names into a return-delimited list and sets the clipboard to that. Then, all you have to do is go to your app (quark or where ever) and paste!
Plus, this script is free and editable so you can easily check out how it does its magic. grin
T.J. Mahaffey
Unfortunately I am hard-pressed to get permission from my employer to download anything. Plus this has to work on several different computers. Surely there’s a straight AS way?
: Unfortunately I am hard-pressed to get permission from my employer to
: download anything. Plus this has to work on several different computers.
: Surely there’s a straight AS way?
It is straight AS. Here’s enough code to get you started. Make a selection in the OS 9 Finder and run the script from the Apple Menu.
tell application "Finder"
activate
set AppleScript's text item delimiters to {return}
set theItemNames to name of every item in selection as text
set AppleScript's text item delimiters to ""
set the clipboard to theItemNames
display dialog "Finder item text list has been captured."
end tell
Oh okay. Sorry. I thought it was an extension to download or something like that. As you can see, I am still somewhat green at this.
Thanks. I’ll give it a try.