File name list help?
File name list help?
- Subject: File name list help?
- From: "T.J. Mahaffey" <email@hidden>
- Date: Sat, 06 Oct 2001 21:53:10 -0700
I'm working on a script which will make it easier to manipulate names of
files for pasting into emails or word processors.
What I have so far works like a champ, but I'd like to be able to insert a
common character after each item in the list. In it's current state, the
paste-able clipboard comes out like this: item1item2item3
I'd LIKE it to come out like this:
item1, item2, item3
OR with a return after each item
Here's what I have so far.
tell app "Finder"
set theItemNames to name of every item in selection as text
set the clipboard to theItemNames
end tell
I'm convinced it'll have something to do with a repeat loop (?) and maybe a
"count of theList" command somewhere...?
Could someone give me a nudge or a hint as to how to approach this part?
Many thanks in advance.
T.J. Mahaffey
email@hidden