Hi Ved,
if you want to maintain space characters use:
name = "image name.tif";
run("Duplicate...", "title=&name");
> Requires IJ 1.43
or
name = "image name.tif";
run("Duplicate...", "title=["+name+"]);
> Earlier IJ versions
Best regards,
Ingo
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Ved Sharma
Sent: Mittwoch, 16. Dezember 2009 05:35
To:
[hidden email]
Subject: Duplicate...
Hi all,
While an image is open, I run following code in a macro:
---------------
name = "image name.tif";
run("Duplicate...", "title="+name);
--------------
It duplicates the image but the title of the duplicated image is "image" and
not "image name.tif".
I was just wondering if I'm making any mistake?
Thanks in advance,
Ved