Re: Files in a Folder
Re: Files in a Folder
- Subject: Re: Files in a Folder
- From: Michelle Steiner <email@hidden>
- Date: Thu, 9 Aug 2001 11:53:08 -0700
On 8/9/01 10:54 AM, Joachim Georgii <email@hidden> wrote:
>
I want to write an applescript which does the stuff on every file in a
>
folder.
>
However, the application I use needs a file spec in the form of
>
---> file "disk:folder:name"
>
for the openfile command.
>
How can I get a file-list in that form from a selected folder??
>
I have found my result as list of items in the form "file name of
>
folder ... of disk ..."
>
How do I convert that result for my needs?
tell application "Finder"
files of alias "macintosh HD:documents" as alias list
--returns only files
folders of alias "macintosh HD:documents:" as alias list
--returns only folders
items of alias "Dora:" as alias list
--returns all items
end tell
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------