• 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: Search Folder Hierarchy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search Folder Hierarchy


  • Subject: Re: Search Folder Hierarchy
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 28 Jan 2006 11:05:47 -0700

On Jan 28, 2006, at 10:50 AM, Simon, Garry wrote:

* Process a disk or folder dropped onto it

* Search through every level of subfolders for files


This will traverse the folders:    

set topLevel to choose folder
splitFoldersFromFiles(topLevel)

on splitFoldersFromFiles(inputFolder)
tell application "Finder"
processFiles(files of inputFolder)
set FolderList to folders of inputFolder
repeat with thisFolder in FolderList
splitFoldersFromFiles(thisFolder)
end repeat
end tell
end splitFoldersFromFiles

on processFiles(FileList)
repeat with thisFile in FileList
-- File processing goes here.
end repeat
end processFiles


-- Michelle

--
I'm at an age where I can satisfy my wants without too many guilt feelings.

 _______________________________________________
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: 
 >Search Folder Hierarchy (From: "Simon, Garry" <email@hidden>)

  • Prev by Date: Search Folder Hierarchy
  • Next by Date: Re: FTP Upload
  • Previous by thread: Search Folder Hierarchy
  • Next by thread: Re: Search Folder Hierarchy
  • Index(es):
    • Date
    • Thread