How do I list ONLY the files in a folder that has other folders in it?
How do I list ONLY the files in a folder that has other folders in it?
- Subject: How do I list ONLY the files in a folder that has other folders in it?
- From: Richard Covert <email@hidden>
- Date: Tue, 1 Jun 2004 01:09:22 -0500
I have a folder which may have XXX other folders in it. I want to list
only the files
in the files and NOT the files in the other folders in that folder.
if I do this:
set rarfiles to list files of src_folder without invisibles
where src_folder is "Panther Backup:__Radio Shows:__XXXTestFolder copy
1:"
I get a list of
Panther Backup:__Radio Shows:__XXXTestFolder copy
1:rarfiles_tesgov3602:TEST_0514.par2
Panther Backup:__Radio Shows:__XXXTestFolder copy
1:rarfiles_tesgov3602:TEST_0514.rar
Panther Backup:__Radio Shows:__XXXTestFolder copy
1:rarfiles_tesgov3602:TEST_0514.vol000+100.par2
Panther Backup:__Radio Shows:__XXXTestFolder copy 1:TEST_0514.par2
Panther Backup:__Radio Shows:__XXXTestFolder copy 1:TEST_0514.rar
Panther Backup:__Radio Shows:__XXXTestFolder copy
1:TEST_0514.vol000+100.par2
Panther Backup:__Radio Shows:__XXXTestFolder copy
1:TEST_0514_CommericalFree.mp3
As you can see I get the files in the nested folder
"rarfiles_tesgov3602" as well as the files
in the main folder "Panther Backup:__Radio Shows:__XXXTestFolder copy
1:"
How do I list tonly the files in the main folder and not any of the
nested folders??
thanks
_______________________________________________
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.