batch delete via terminal or applescript
Can anyone help me create a file (to run in the terminal or via applescript) to batch delete a bunch of files?
The files are scattered across a whole bunch of folders but I have the full path and file name.
I made a simple batch file for the PC that just runs the "del" command followed by the full path and filename but I don't know how to do the same under OS X.
Example of a typical path would be /Volumes/My External HD/images/MyFolder/myfile.jpg
I know I will need to escape the space in the volume name if I use the terminal (My\\ External\\ HD) but will having comma (or period) in a folder name cause a problem? If I drag the folder into the terminal, I don't see it escaping them so I assume those are ok.
Any help is appreciated.
Thanks
The files are scattered across a whole bunch of folders but I have the full path and file name.
I made a simple batch file for the PC that just runs the "del" command followed by the full path and filename but I don't know how to do the same under OS X.
Example of a typical path would be /Volumes/My External HD/images/MyFolder/myfile.jpg
I know I will need to escape the space in the volume name if I use the terminal (My\\ External\\ HD) but will having comma (or period) in a folder name cause a problem? If I drag the folder into the terminal, I don't see it escaping them so I assume those are ok.
Any help is appreciated.
Thanks
Comments
http://developer.apple.com/internet/...scripting.html
http://www.macdevcenter.com/pub/a/ma...sx.html?page=1
Case closed. Sorry for wasting everyone's time