RE: Macro not cycling through all files in directory [I]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: Macro not cycling through all files in directory [I]

Matt Boyle
Classification: AMEC Internal

Hello Patrick,

 

I ended up fixing the problem for myself by writing a macro of what I wanted to do, and then writing a macro to run that first macro repeatedly on the files.

 

dir=getDirectory("image");

close();

list=getFileList(dir);

for (i=0;i<list.length;i++){

  path = dir+list[i];

  if (!endsWith(path,"/")) open(path);

  runMacro("Macro2.ijm");

}

 

Make sure the macro of the process you want to repeat is in the Macros folder in the ImageJ Program Files (Usually C:\Program Files\ImageJ\macros) and you shouldn’t have a problem as long as it is all debugged.

 

 


From: saucedap [via ImageJ] [mailto:[hidden email]]
Sent: 04 June 2014 23:56
To: Matthew Boyle
Subject: Re: Macro not cycling through all files in directory

 

Hello, my name is Patrick.

I have the same problem can you help. As you fixed

Sorry my English is bad. thanks

Best wishes


If you reply to this email, your message will be added to the discussion below:

http://imagej.1557.x6.nabble.com/Macro-not-cycling-through-all-files-in-directory-tp5007506p5008015.html

To unsubscribe from Macro not cycling through all files in directory, click here.
NAML

*****Disclaimer************
This email contains confidential information. The contents must
not be disclosed to anyone else except with the authority of the sender.
Unauthorised recipients are requested to maintain this confidentiality and
immediately advise the sender of any error or misdirection in transmission.

The following notice applies to emails originating in the UK.
E-mails sent on behalf of AMEC are sent on behalf of the relevant AMEC
company below. These are registered in England and Wales with registered
office at Booths Park, Chelford Road, Knutsford, Cheshire WA16 8QZ and
number as shown: AMEC plc 01675285, AMEC Group Limited 04612748,
AMEC Capital Projects Limited 02804109, AMEC Earth and Environmental UK
Limited 04987981, AMEC Nuclear Holdings Limited 03725076,
AMEC Nuclear M & O Limited 05664844, AMEC Nuclear UK Limited
01120437,
AMEC Nuclear International Limited 03260477, AMEC Nuclear Projects
Limited 05664962 and National Nuclear Corporation Limited 02290928
*****End Disclaimer********

Reply | Threaded
Open this post in threaded view
|

RE: Macro not cycling through all files in directory [I]

saucedap
This post was updated on .
Thank you very much.

Works very well

Thank you very much.
It works great.

I think the problem is with the Autogenerated macro Thresholder Color.

Best wishes


Patricio