• 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: given a folder alias, get aliases to the contained files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: given a folder alias, get aliases to the contained files


  • Subject: Re: given a folder alias, get aliases to the contained files
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 17 Nov 2004 11:52:14 -0800

On 11/17/04 11:45 AM, "Adam K. Wuellner" <email@hidden>
wrote:

> Is there a better way than:
>
> tell application "Finder" to set theFiles to files of aFolder
> repeat with i from 1 to count of theFiles
> set item i of theFiles to item i of theFiles as alias
> end repeat


    tell application "Finder"
        try
            set theFiles to files of aFolder as alias list
        on error -- if only one file 'as alias list' will error!
            set theFiles to files of aFolder as alias as list
        end try
    end tell

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: given a folder alias, get aliases to the contained files
      • From: "Adam K. Wuellner" <email@hidden>
References: 
 >given a folder alias, get aliases to the contained files (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: [ANN] New comprehensive AppleScript book
  • Next by Date: Re: New comprehensive AppleScript book
  • Previous by thread: given a folder alias, get aliases to the contained files
  • Next by thread: Re: given a folder alias, get aliases to the contained files
  • Index(es):
    • Date
    • Thread