Re: Simple question: List Folder
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