[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?
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;
});
};
)
so the unix command to move and rename files is mv. you can call it
from within sc like this...
"mv file1.aiff file1.xyz".unixCmd
careful when using it thought and don't blame me if you overwrite
important files.
should also work with text files like rtf, sc and other. but it'll
only change the extension name, not open and resave in new format.
for that you can look into apple's Automator and AppleScript.
good luck,
_f
26 dec 2009 kl. 20.32 skrev PyoungRyang Ko:
Dear users,
i am very sorry for a quite irrelevant question.
can we change the extension of multiple files in SC3?
best,
prko
--
PyoungRyang Ko
#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#
_______________________________________________
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/