Try running (system "echo $PATH"); you probably don't have 'convert', in your path via system. If you specify the exact path (e.g.(system:string "/usr/local/bin/convert" old " -flip " new)), then it should work. Also, be careful about passing old or new in to system unmodified—quote and escape them, or you might run anything at all.