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

Re: File name list help?


  • Subject: Re: File name list help?
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 7 Oct 2001 11:38:34 +0100

"T.J. Mahaffey" wrote on Sat, 06 Oct 2001 21:53:10 -0700:

>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

tell application "Finder"
activate -- to ensure access to the clipboard
set AppleScript's text item delimiters to {return} -- or ", "
set the clipboard to (name of selection) as text
set AppleScript's text item delimiters to {""}
end tell

NG


  • Prev by Date: Re: Applescript language guide inaccessible from http://www.apple.com/applescript/
  • Next by Date: New to applescript and soap
  • Previous by thread: Re: File name list help?
  • Next by thread: Re: File name list help?
  • Index(es):
    • Date
    • Thread