• 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: applescript-users digest, Vol 3 #618 - 11 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: applescript-users digest, Vol 3 #618 - 11 msgs
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Unquoting a string
  • Next by Date: url access
  • Previous by thread: Re: Unquoting a string
  • Next by thread: Re: applescript-users digest, Vol 3 #618 - 11 msgs
  • Index(es):
    • Date
    • Thread