Re: file.delete()
Posted by dscho on
URL: http://imagej.273.s1.nabble.com/file-delete-tp3700321p3700323.html
Hi,
On Wed, 14 Feb 2007, Lionel Flandin wrote:
> var todelete="/sim/spicy/IJ/save/1.txt";
> if (File.exists(todelete)) {
> File.delete(todelete);
> print ("found and deleted");}
> else {print ("not found");}
>
> I get the following error : "File must be in imageJ home or temp
> directory in line 3".
This is a security feature. Otherwise any macro you run could destroy
_all_ your files.
Ciao,
Dscho