[PD] renaming files on the fly

Hans-Christoph Steiner hans at at.or.at
Fri Mar 2 17:50:34 CET 2012


And just to throw in some other options, you could do this with  [motex/system] and [popen] also.  Or write a little Lua or Tcl script and make an object out of it for pdlua or tclpd.

.hc

On Mar 1, 2012, at 3:03 PM, David Schaffer wrote:

> I think the ideal would be to do this outside of Pd with a dedicated software (like batch file renamer on windows or anything from the appstore on mac). if, for some reason, you really wanna do this within Pd, then you should take a look at the attached patch: it's a loop recorder that can save audio to files in a dedicated folder and name these files sequentially. You can probably modify it to do just what you want. But were talking .wav here, I'm not sure what to do with jpg's. Anyway, hope it helps...
>  
> note: the "choose directory" function on the patch requires you to click on a file in the desired directory. If there is none, you can just create an empty notepad file or something.
> 
> http://www.flickr.com/photos/schafferdavid/
> http://audioblog.arteradio.com/David_Schaffer/
> 
>   
> From: pat at digitalworlds.ufl.edu
> To: pd-list at iem.at
> Date: Thu, 1 Mar 2012 22:18:47 +0000
> Subject: [PD] renaming files on the fly
> 
> Hello
>  
> Is there a way with pd to rapidly rename files downloaed from the internet?
> For example I will be downloading .jpgs with all sorts of long reference names
> xxxxxxxxx.jpg and I want to automatically rename it “1.jpg”
> Is this possible
>  
> Thanks in advance
>  
> pp
>  
> Patrick Pagano, B.S, M.F.A
> Assistant in Digital Arts and Science
> Digital Worlds Institute
> University of Florida, USA
> (352)294-2020
>  
> 
> _______________________________________________ Pd-list at iem.at mailing list UNSUBSCRIBE and account-management ->http://lists.puredata.info/listinfo/pd-list
> <loopcatcher~.pd>_______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list


----------------------------------------------------------------------------

"A cellphone to me is just an opportunity to be irritated wherever you are." - Linus Torvalds

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120302/09150764/attachment.htm>


More information about the Pd-list mailing list