Rename nested folders
Rename nested folders
- Subject: Rename nested folders
- From: "Stranathan, Dan" <email@hidden>
- Date: Wed, 21 May 2008 08:11:34 -0500
- Acceptlanguage: en-US
- Thread-topic: Rename nested folders
Hello all
I need to rename some folders. Simple task, Im sure, but I need to research my options using AppleScript.
Situation: I have a user who gets a weekly bundle of files emailed to him. The files are basically a collection of folders and files nested into each other (not too deep, maybe 3 or 3 levels max). The collection is in a single folder and that tope level folder arrives in his email as a .zip archive. His problem is that the sub folders have forward slashes ("/") in them, which need to be removed and replaced with a dash. I cant get the creator/sender of the files to renames them for me (its part of an automated process I have no control over). Here's an example of what the folders look like:
Manuscripts/2008/091066
Manuscripts/2008/091067
Manuscripts/2008/091068
Id like to have a droplet that can convert the folders recursively, replacing the "/" with a "-" as needed. Example:
Manuscripts-2008-091066
Manuscripts-2008-091067
Manuscripts-2008-091068
(The files inside the folders are fine, its only the folders that have slashes in their names)
As a final step, Id like the folders to be re-zipped back into a single .zip archive again (without any MACOSX or .DS_Store files preferably. I have noticed that the OS X GUI Archive Utility creates these annoying files, but the command line "zip -r" command does not create them)
Any advice, samples or suggestions are appreciated.
-D
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden