[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] can we change the extension of multiple files in SC3?



I read:
thanks!

On Sat, Dec 26, 2009 at 8:55 PM, Fredrik Olofsson <f@xxxxxxxxxxxxxxxxxxx> wrote:
a= "/Applications/SuperCollider/sounds/*".pathMatch;    //first generate
list with pathnames

(       //then replace all .aiff with .xyz  WARNING- MAKE BACKUP OF AIFF
SOUNDFILES IN SOUNDS/ FIRST
a.do{|x|
       var pn= PathName(x);
       if(pn.extension=="aiff", {      //filter out .aiff files
               ("mv"+pn.fullPath+pn.fullPath.replace("aiff",
"xyz")).unixCmd;
       });
};
)

I think I'll stick to bash for this,

rename all '.ext' files in current dir to '.new':
$ for F in *.ext; do mv $F ${F/.ext/}.new; done
regards,

x

--
chris@xxxxxxxxxx        Postmodernism is german romanticism with better
http://pilot.fm/        special effects. (Jeff Keuss / via ctheory.net)

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/