Re: applescript-users digest, Vol 3 #618 - 11 msgs
Re: applescript-users digest, Vol 3 #618 - 11 msgs
- Subject: Re: applescript-users digest, Vol 3 #618 - 11 msgs
- From: Zimba <email@hidden>
- Date: Mon, 15 Jul 2002 02:29:24 +0200
Hi...
Isn't there a better way for listing files in folder and nested?
Thanks a lot...
Zimba
on open these_items
try
repeat with i from 1 to the count of these_items
set this_item to (item i of these_items)
set the item_info to info for this_item
if folder of the item_info is true then
process_folder(this_item, file_list)
else
set end of file_list to this_item as list
end if
end repeat
copy_files(file_list)
treatment()
on error x
display dialog x
end try
end open
-- this sub-routine processes folders
on process_folder(this_folder, file_list)
try
set these_items to list folder this_folder without
invisibles
--set i to 0
repeat with i from 1 to the count of these_items
set this_item to alias ((this_folder as text) & (item
i of these_items))
set the item_info to info for this_item
if folder of the item_info is true then
process_folder(this_item, file_list)
else
set end of file_list to this_item as list
end if
end repeat
on error x
display dialog x
end try
end process_folder
--
_______________________________________________
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.