Dear ImageJ users,
I'm trying to modify the default behavior of File/Open next command to give the choice to let the image opened or close it when the next(/ previous) image is called. Have you some trick to do that ? (key shortcut ? how to modify IJ_Props.txt ?) thank you all... Leon Leon Espinosa [hidden email] Laboratoire des Rickettsies du Pr. RAOULT UMR CNRS 6020 Fac. de Medecine de la Timone 27 Bd Jean Moulin 13005 Marseille tel 04 91 38 55 17 fax 04 91 38 77 72 |
Salut Léon.
Make a simple macro set with the following macros : macro "Close and Open Next [F1]"{ close(); run("Open Next"); } macro "Open Next [F2]"{ run("Open Next"); } jerome Quoting Leon Espinosa <[hidden email]>: > Dear ImageJ users, > I'm trying to modify the default behavior of File/Open next command > to give the choice to let the image opened or close it when the next(/ > previous) image is called. Have you some trick to do that ? (key > shortcut ? how to modify IJ_Props.txt ?) > > thank you all... > > Leon > > > > > Leon Espinosa > [hidden email] > > Laboratoire des Rickettsies du Pr. RAOULT > UMR CNRS 6020 > Fac. de Medecine de la Timone > 27 Bd Jean Moulin > 13005 Marseille > > tel 04 91 38 55 17 > fax 04 91 38 77 72 > |
Thank you Jerome... but it doesn't work. because the default behavior
of the NextImageOpener plug-in is to close the previous image, and also it dosn't work because your macro starts with a "close();" command so if there is just one image open it says "no images open"... I still trying... All the best, Leon Le 26 avr. 06 à 16:00, Jerome Mutterer a écrit : > macro "Close and Open Next [F1]"{ > close(); > run("Open Next"); > } > macro "Open Next [F2]"{ > run("Open Next"); > } Leon Espinosa [hidden email] Laboratoire des Rickettsies du Pr. RAOULT UMR CNRS 6020 Fac. de Medecine de la Timone 27 Bd Jean Moulin 13005 Marseille tel 04 91 38 55 17 fax 04 91 38 77 72 portable 06 79 25 97 40 |
In reply to this post by Leon Espinosa
this should be working, it makes a copy of the current image, and
opens next image. macro "Open Next without closing [F1]"{ title=getTitle(); rename ("temp"); run("Duplicate...", "title="+title); selectWindow("temp"); run("Open Next"); } Jerome Quoting Leon Espinosa <[hidden email]>: > Thank you Jerome... but it doesn't work. because the default behavior =20= > > of the NextImageOpener plug-in is to close the previous image, and =20 > also it dosn't work because your macro starts with a "close();" =20 > command so if there is just one image open it says "no images open"... > I still trying... > > All the best, Leon > > > > Le 26 avr. 06 =E0 16:00, Jerome Mutterer a =E9crit : > >> macro "Close and Open Next [F1]"{ >> close(); >> run("Open Next"); >> } >> macro "Open Next [F2]"{ >> run("Open Next"); >> } > > Leon Espinosa > [hidden email] > > Laboratoire des Rickettsies du Pr. RAOULT > UMR CNRS 6020 > Fac. de Medecine de la Timone > 27 Bd Jean Moulin > 13005 Marseille > > tel 04 91 38 55 17 > fax 04 91 38 77 72 > > portable 06 79 25 97 40 > |
OK it works... but only in forward direction.
Because run("Open next") has not argument to indicate de direction, default behavior is forward (it is possible to go backward with keyboard shortcut "shift+alt+o"). But how to use it in a macro/plug- in ? (my feeling is that there is something to change in IJ_Props.txt but I don't know what...) Leon Le 26 avr. 06 à 16:30, Jerome Mutterer a écrit : > this should be working, it makes a copy of the current image, and > opens next image. > > macro "Open Next without closing [F1]"{ > title=getTitle(); > rename ("temp"); > run("Duplicate...", "title="+title); > selectWindow("temp"); > run("Open Next"); > } > > > Jerome > > > Quoting Leon Espinosa <[hidden email]>: > >> Thank you Jerome... but it doesn't work. because the default >> behavior =20= >> >> of the NextImageOpener plug-in is to close the previous image, and >> =20 >> also it dosn't work because your macro starts with a "close();" =20 >> command so if there is just one image open it says "no images >> open"... >> I still trying... >> >> All the best, Leon >> >> >> >> Le 26 avr. 06 =E0 16:00, Jerome Mutterer a =E9crit : >> >>> macro "Close and Open Next [F1]"{ >>> close(); >>> run("Open Next"); >>> } >>> macro "Open Next [F2]"{ >>> run("Open Next"); >>> } >> >> Leon Espinosa >> [hidden email] >> >> Laboratoire des Rickettsies du Pr. RAOULT >> UMR CNRS 6020 >> Fac. de Medecine de la Timone >> 27 Bd Jean Moulin >> 13005 Marseille >> >> tel 04 91 38 55 17 >> fax 04 91 38 77 72 >> >> portable 06 79 25 97 40 >> > Leon Espinosa [hidden email] Laboratoire des Rickettsies du Pr. RAOULT UMR CNRS 6020 Fac. de Medecine de la Timone 27 Bd Jean Moulin 13005 Marseille tel 04 91 38 55 17 fax 04 91 38 77 72 portable 06 79 25 97 40 |
In reply to this post by Jerome Mutterer
When was run("Open Next") added to ImageJ? This is a great command! Saves
a huge amount of macro writing for batch processing!! At 04:00 PM 04/26/06 +0200, you wrote: >Salut Léon. > >Make a simple macro set with the following macros : > >macro "Close and Open Next [F1]"{ >close(); >run("Open Next"); >} >macro "Open Next [F2]"{ >run("Open Next"); >} > > >jerome > > >Quoting Leon Espinosa <[hidden email]>: > >>Dear ImageJ users, >>I'm trying to modify the default behavior of File/Open next command >>to give the choice to let the image opened or close it when the next(/ >>previous) image is called. Have you some trick to do that ? (key >>shortcut ? how to modify IJ_Props.txt ?) >> >>thank you all... >> >>Leon >> >> >> >> >>Leon Espinosa >>[hidden email] >> >>Laboratoire des Rickettsies du Pr. RAOULT >>UMR CNRS 6020 >>Fac. de Medecine de la Timone >>27 Bd Jean Moulin >>13005 Marseille >> >>tel 04 91 38 55 17 >>fax 04 91 38 77 72 ____________________________________________________________________________ Michael Cammer Analytical Imaging Facility Albert Einstein Coll. of Med. URL: http://www.aecom.yu.edu/aif/ |
Free forum by Nabble | Edit this page |