Re: Renaming files and folder
Re: Renaming files and folder
- Subject: Re: Renaming files and folder
- From: Andrew Oliver <email@hidden>
- Date: Fri, 10 Dec 2004 23:50:07 -0800
On 12/10/04 11:39 PM, "Gudrun Claeys" <email@hidden> wrote:
> Hi all,
> The problem with renaming files and folders is the the renaming only takes
> place on the top level folder and the level below, any folder below this isn¹t
> renamed. I can¹t seem to find a way of drilling through the whole folder
> structure. Please can anyone help me.
Well, for a start your script knows nothing about subfolders. If you want to
process all items you either need to make you script recursive (so it walks
down the folder tree as it encounters folders) or change the line:
> set the item_list to ((every item of the source_folder whose name
> contains the search_string) & (source_folder)) as list
to:
> set the item_list to ((every item of entire contents of the
source_folder whose name contains the search_string) & (source_folder)) as list
Andrew
:)
_______________________________________________
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