• 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
Searching in nested folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Searching in nested folders


  • Subject: Searching in nested folders
  • From: Bis <email@hidden>
  • Date: Thu, 6 May 2004 18:28:28 +0100

hi

i was hoping someone would be kind enough to show me some kind of algorithm for the following problem.

I need to search a folder and all subfolders within the folder for quark files and, if any quark files are found, copy them to another folder.

What I can't work out is a general algorithm which says:

1) get a list of all the items in the source folder
2) if any of the items is a quark file copy it to the destination folder
3) if any of the items is a folder get a list of its items
4) if any of these items is a quark file copy it to the destination folder

and so on and so forth until all subfolders have been searched for quark files which, if found, have been copied to the destination folder.

Does this make sense?

--
Many thanks in advance

Bis Dasgupta
_______________________________________________
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.


  • Follow-Ups:
    • Re: Searching in nested folders
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: 'info for' braindead about .app packages
  • Next by Date: Re: 7: AppleScript (FileMaker Developer 7)
  • Previous by thread: Re: FolderActions bug?
  • Next by thread: Re: Searching in nested folders
  • Index(es):
    • Date
    • Thread