Re: Automatic installation and run of a macro
Posted by ved sharma on Sep 20, 2010; 11:06pm
URL: http://imagej.273.s1.nabble.com/Automatic-installation-and-run-of-a-macro-tp3686895p3686896.html
Dear Douglas,
Do not rename your macro as "StartupMacros.txt", rather as mentioned in the "StartupMacros.txt" file, add the following lines in the "StartupMacros.txt" file. The following example code will run the macro "Factorials.txt" (if it exists!). Replace the file name with your macro file name and it will run your macro at ImageJ startup.
macro "AutoRun" {
run("Run...", "run=[C:\\Program Files\\ImageJ\\macros\\Factorials.txt]");
}
Ved
-----------------------
Ved P. Sharma, Ph.D.
Dept. of Anatomy and Structural Biology
Albert Einstein College of Medicine
Bronx, NY 10461