• 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: Trying to get the path to every file in a folder - Help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to get the path to every file in a folder - Help!


  • Subject: Re: Trying to get the path to every file in a folder - Help!
  • From: John Stewart <email@hidden>
  • Date: Fri, 24 Dec 2004 06:40:10 -0500

On 12/23/04 at -0700 Michelle Steiner said this

>I think the following is a bit simpler; it returns a list of aliases;
>if the folder is empty, it returns an empty list (it returns the empty
>list even without the try statement).
>
>set sourceFolder to choose folder
>tell application "Finder"
>   try
>       set filesList to files of sourceFolder as alias list
>   on error
>       set filelist to files of sourceFolder as alias as list
>   end try
>end tell


Yes it does. Thx Michelle.

JBS
--
Inside every older person is a younger person wondering "What happened?!"
 _______________________________________________
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: 
 >Re: Trying to get the path to every file in a folder - Help! (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Driving Java App with Applescript, begining
  • Next by Date: Re: Remote AppleEvents to older OS
  • Previous by thread: Re: Trying to get the path to every file in a folder - Help!
  • Next by thread: Re: Trying to get the path to every file in a folder - Help!
  • Index(es):
    • Date
    • Thread