• 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: dropping folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dropping folders


  • Subject: Re: dropping folders
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 28 Sep 2004 11:28:21 -0700


On Sep 28, 2004, at 10:11 AM, Bjorn Sodergren wrote:

Does anyone have or know of an existing method that would let me
trasverse a directory structure to parse a file (or list of files) ?

It's a matter of recursion.

on open (Dropped_items)
	my do_files(files of the Dropped_items)
	my do_folders(folders of the Dropped_items)
end open

to do_files(incoming_files)
	repeat with This_file in incoming_files
		--do whatever you need to do with the files
	end repeat
end do_files

to do_folders(incoming_folders)
	repeat with this_folder in incoming_folders
		my do_files(files of this_folder)
		my do_folders(folders of this_folder)
	end repeat
end do_folders

-- Michelle

--
Rock is dead.
Long Live Paper and Scissors!

_______________________________________________
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: 
 >dropping folders (From: Bjorn Sodergren <email@hidden>)

  • Prev by Date: Re: How to parse a textfile ?
  • Next by Date: Sv: dropping folders
  • Previous by thread: dropping folders
  • Next by thread: Sv: dropping folders
  • Index(es):
    • Date
    • Thread