• 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: list of aliases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list of aliases


  • Subject: Re: list of aliases
  • From: Adam Wuellner <email@hidden>
  • Date: Tue, 26 Apr 2005 22:04:28 -0500

On 4/26/05, Jim Brandt <email@hidden> wrote:
> Is there a work-around for a single file situation?



Date: Wed, 17 Nov 2004 11:52:14 -0800
From: Paul Berkowitz <email@hidden>
To: AppleScript-Users <email@hidden>
Message-ID: <BDC0EBEE.7A3EAžemail@hidden>
In-Reply-To: <email@hidden>
Subject: Re: given a folder alias, get aliases to the contained files


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

References: 
 >list of aliases (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: list of aliases
  • Next by Date: Re: list of aliases
  • Previous by thread: Re: list of aliases
  • Next by thread: Re: list of aliases
  • Index(es):
    • Date
    • Thread