• 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: Follow-up: files in subfolders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Follow-up: files in subfolders


  • Subject: Re: Follow-up: files in subfolders
  • From: Craig Sutherland <email@hidden>
  • Date: Sun, 12 Oct 2003 08:50:59 -0500

Terry.

set _folder to choose folder
set _fileList to {}

tell application "Finder"
set _list to every file of _folder as alias list
end tell

repeat with _file in _list
set _info to info for _file
set _name to name of _info
set _fileList to _fileList & _name
end repeat
_fileList

HTH
Craig Sutherland

"Who is John Galt"
On Oct 11, 2003, at 9:25 PM, Terry Hill wrote:
> I was trying out your suggestion that was posted on the AppleScript
> digest, and got it to work for a similar problem I was having. I do
> have one follow-up question if I may ask you ...
>
> My script below, asks the user for a folder to search, then searches
> for all of the files ending in the suffix ".tex".
> Per your code, it returns the list, but in the following verbage:
> "{document file "Hill_aareuntion.tex" of folder "Hill" of folder
> "Report Project" of folder "All Reports" of startup disk, document file
> ...."
>
> How can I get it to return the list of the files, searching through
> sub-folders, returning the path to the file, such as: HD:All
> Reports:Report Project:Hill:Hill_aareuntion.tex ?
>
> You Wrote:
> Date: Fri, 10 Oct 2003 09:24:19 -0500
> Subject: files in subfolders (was Re: file type question)
> From: John Adam Bloom <email@hidden>
> To: email@hidden
>
> 'Tis simple: get every file IN ENTIRE CONTENTS OF folder "HD1:Misc:"
> whose file type = "TEXT"
>
> HTH
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Follow-up: files in subfolders (was Re: file type question) (From: Terry Hill <email@hidden>)

  • Prev by Date: Re: How do I format a number or Round a number?
  • Next by Date: Quark vs InDesign - satisfying a test
  • Previous by thread: Follow-up: files in subfolders (was Re: file type question)
  • Next by thread: get seconds
  • Index(es):
    • Date
    • Thread