<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello IJ developers,</div><div>I have been using a macro for processing multiple choice surveys for a while. I wrote this macro from scratch (it was not recorded on the UI) for IJ1 and it works very well on IJ1. I have been trying to migrate to IJ2 so that i can move my processing to the cloud.</div><div><br></div><div>I have also written some code to preprocess the images i receive and use IJ as a library within my code. I use IJ.runMacroFile(...) to run the macro that i wrote for detailed image processing using IJ.</div><div><br></div><div>I am stuck trying to replicate this behavior on IJ2. If i link IJ1 as a library, AWT is invoked and i am unable to run on a headless server. I looked at the code for the ScriptPlugin.java and various other files in the plugins.script package but have no clue on how to get similar
 functionality as IJ.runMacroFile(..).</div><div><br></div><div>Any pointers on how i can get this done?</div><div><br></div><div>-raghuram<br></div></div></body></html>