• 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: Files in a Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Files in a Folder
      • From: Joachim Georgii <email@hidden>
  • Prev by Date: making a script into a droplet
  • Next by Date: Re: Files in a Folder
  • Previous by thread: Files in a Folder
  • Next by thread: Re: Files in a Folder
  • Index(es):
    • Date
    • Thread