Automatic installation and run of a macro

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

Automatic installation and run of a macro

Douglas Benn-2
I am building a turnkey system and would like to have a macro
automatically installed and run at ImageJ startup. I have renamed my
macro "StartupMacros.txt" and it is in the macros folder. Is there any
way I can automate the run of this macro at ImageJ startup?

 

Thanks.

 

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, Room 210

Creighton University School of Dentistry

2802 Webster Street Omaha

Nebraska 68178

 

Tel: (402)280 5025

Fax: (402)280 5094

 
Reply | Threaded
Open this post in threaded view
|

Re: Automatic installation and run of a macro

ved sharma
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
Reply | Threaded
Open this post in threaded view
|

Re: Automatic installation and run of a macro

Douglas Benn-2
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