• 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
File name list help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: File name list help?
      • From: AppleScript Guru <email@hidden>
  • Prev by Date: Re: MacOS X AS list (needed!)
  • Next by Date: FW: Set Selection with a list of items - SOLVED
  • Previous by thread: Re: scripting audion to not quit till finished encoding
  • Next by thread: Re: File name list help?
  • Index(es):
    • Date
    • Thread