• 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: Simple question: List Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple question: List Folder


  • Subject: Re: Simple question: List Folder
  • From: "Christopher C. Stone" <email@hidden>
  • Date: Sun, 11 Feb 2001 16:02:42 -0600

At 13:46 -0800 02/11/2001, Gary Hobish wrote:

> I need to make a list of all files in a chosen folder. The command:
>
> set webFiles to name of every item of the folder newImagesFolder as text
>
> yields a list of all the items in the folder, but as a single line with no
> delimiter of any kind.
>
> I know I'm missing something simple (other than my copy of the Goodman book
> which is AWOL). What is it?
___________________________________________________________________________

Hello Gary,

set fldr to alias "Minerva:Storage:"

set AppleScript's text item delimiters to {return}
set l to (list folder fldr) as string
set AppleScript's text item delimiters to {""}
l

OR

set fldr to alias "Minerva:Storage:"

tell application "Finder"
set AppleScript's text item delimiters to {return}
set l to (name of items of fldr) as string
set AppleScript's text item delimiters to {""}
end tell
l



Best Regards,

Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden


References: 
 >Simple question: List Folder (From: Gary Hobish <email@hidden>)

  • Prev by Date: Simple question: List Folder
  • Next by Date: Re: removing an item from a list [Was: Two Questions]
  • Previous by thread: Simple question: List Folder
  • Next by thread: Re: Simple question: List Folder
  • Index(es):
    • Date
    • Thread