Login  Register

Re: Automatic installation and run of a macro

Posted by Douglas Benn-2 on Sep 21, 2010; 3:09am
URL: http://imagej.273.s1.nabble.com/Automatic-installation-and-run-of-a-macro-tp3686895p3686897.html

Dear Ved,

Fantastic.

Thank you.

Douglas

Dr Douglas K Benn, BDS,DDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor and Director of Oral & Maxillofacial Radiology
Dept of General Dentistry
Creighton University Dental School
2802 Webster St, Boyne 210
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094



-----Original Message-----
From: ImageJ Interest Group on behalf of Ved Sharma
Sent: Mon 9/20/2010 6:06 PM
To: [hidden email]
Subject: Re: Automatic installation and run of a macro
 
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