Executing Terminal Command via open() not working

edited April 2014 in Using Processing

Hey there,

I have a large amount of images named 001.jpg, 002.jpg etc etc. Each number is associated to a name Klaus, Günther etc etc.. I am using Processing to load the images, find out the associated name and try to rename the file to Klaus.jpg, Günther.jpg etc etc.

I am using open() to change the filename, using the following command: mv 'path/to/image/001.jpg' 'path/to/image/Klaus.jpg'

In Processing splitted into a String Array, because you have to!?

But the filenames just dont change!! Also trying Runtime.getRuntime.exec() is not working.

Is there maybe some limitations of what kind of commands one can execute from Processing?

Answers

Sign In or Register to comment.