Re: Need to rename files/folders - zsh shell
Re: Need to rename files/folders - zsh shell
- Subject: Re: Need to rename files/folders - zsh shell
- From: Gnarlodious <email@hidden>
- Date: Thu, 10 Jun 2004 11:07:50 -0600
Entity Bob Bader spoke thus:
>
We are moving from our AFP servers to a Celerra (basically a windows
>
server).
Condolences.
>
The Mac users will access their data via smb mounts. The issue is that
>
our Mac users have characters in their file names that are not allowed
>
on a windows server.
Windows does not allow these characters in filenames:
? [ ] / = + < > ; : " , - *
athough I hear cygwin has no problem with them.
>
Anyone have any ideas?
A shell script is definitely called for here.
(found on Google)
zsh:
autoload -U zmv
chars='[][?=+<>;",*-]'
zmv '(**/)(*)' '$1${2//$~chars/%}'
Anyone know how to plug this into Applescript?
-- Gnarlie
_______________________________________________
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.