I am trying to save a stack as an Image Sequence of TIFFS in a macro that
loops through a whole folder of stacks. Currently my problem seems to be that the macro interpreter does not like the syntax that the macro recorder creates for the Image Sequence command. Below is what I recorded with the recorder. When I use the exact same line in my macro, I get an error saying that a "," or ")" are expected in this line. run("Image Sequence... ", "format=TIFF name=X0000L start=0 digits=2 save= [C:\\Documents and Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3 \\WA OUT\\IJ-MACRO-OUT\\X0000L00.tif] save=[C:\\Documents and Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3\\WA OUT\\IJ-MACRO- OUT\\X0000L00.tif]"); Can anyone help me with how to get the right syntax? Once I understand it, I hope to substitute parts of the parameter string with variables calculated during my loop. But if I don´t even know the right syntax, I can´t get started! |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 It works fine (with imagej 1.41b) if I remove the line-breaks. Volker Bill Mohler a écrit : | I am trying to save a stack as an Image Sequence of TIFFS in a macro that | loops through a whole folder of stacks. | | Currently my problem seems to be that the macro interpreter does not like | the syntax that the macro recorder creates for the Image Sequence | command. Below is what I recorded with the recorder. When I use the | exact same line in my macro, I get an error saying that a "," or ")" are | expected in this line. | | run("Image Sequence... ", "format=TIFF name=X0000L start=0 digits=2 save= | [C:\\Documents and Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3 | \\WA OUT\\IJ-MACRO-OUT\\X0000L00.tif] save=[C:\\Documents and | Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3\\WA OUT\\IJ-MACRO- | OUT\\X0000L00.tif]"); | | | Can anyone help me with how to get the right syntax? Once I understand | it, I hope to substitute parts of the parameter string with variables | calculated during my loop. But if I don´t even know the right syntax, I | can´t get started! | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIfIc5xZKX7A/4oMERAgMoAJ9llxUOq65V2+RA1eodeQ1hbOhxVwCaAhJP MjVmBQWTC518QuyAelggTWQ= =b5BW -----END PGP SIGNATURE----- -- passerelle antivirus du campus CNRS de Montpellier -- |
In my code there aren't any line-breaks. It's all on one line.
I'm on version 1.40g on Windows. Still doesn't work. >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >It works fine (with imagej 1.41b) if I remove the line-breaks. >Volker >Bill Mohler a écrit : >| I am trying to save a stack as an Image Sequence of TIFFS in a macro that >| loops through a whole folder of stacks. >| >| Currently my problem seems to be that the macro interpreter does not like >| the syntax that the macro recorder creates for the Image Sequence >| command. Below is what I recorded with the recorder. When I use the >| exact same line in my macro, I get an error saying that a "," or ")" are >| expected in this line. >| >| run("Image Sequence... ", "format=TIFF name=X0000L start=0 digits=2 save= >| [C:\\Documents and Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3 >| \\WA OUT\\IJ-MACRO-OUT\\X0000L00.tif] save=[C:\\Documents and >| Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3\\WA OUT\\IJ-MACRO- >| OUT\\X0000L00.tif]"); >| >| >| Can anyone help me with how to get the right syntax? Once I understand >| it, I hope to substitute parts of the parameter string with variables >| calculated during my loop. But if I don´t even know the right syntax, I >| can´t get started! >| >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.6 (MingW32) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >iD8DBQFIfIc5xZKX7A/4oMERAgMoAJ9llxUOq65V2+RA1eodeQ1hbOhxVwCaAhJP >MjVmBQWTC518QuyAelggTWQ= >=b5BW >-----END PGP SIGNATURE----- > >-- >passerelle antivirus du campus CNRS de Montpellier >-- |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I tried with 1.40g and for me it still works. I changed the path a bit since your path doesn't exist on my machine. Can you try to copy and run the following: run("Image Sequence... ", "format=TIFF name=X0000L start=0 digits=2 save=[C:\\Documents and Settings\\X0000L00.tif]"); (remove the line-breaks that the email client might add) By the way your command contains the save=... part two times. But it works even with this. Volker Bill Mohler a écrit : | In my code there aren't any line-breaks. It's all on one line. | | I'm on version 1.40g on Windows. | | Still doesn't work. | | It works fine (with imagej 1.41b) if I remove the line-breaks. | Volker | Bill Mohler a écrit : | | I am trying to save a stack as an Image Sequence of TIFFS in a macro | that | | loops through a whole folder of stacks. | | | | Currently my problem seems to be that the macro interpreter does not | like | | the syntax that the macro recorder creates for the Image Sequence | | command. Below is what I recorded with the recorder. When I use the | | exact same line in my macro, I get an error saying that a "," or ")" | are | | expected in this line. | | | | run("Image Sequence... ", "format=TIFF name=X0000L start=0 digits=2 | save= | | [C:\\Documents and Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3 | | \\WA OUT\\IJ-MACRO-OUT\\X0000L00.tif] save=[C:\\Documents and | | Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3\\WA OUT\\IJ-MACRO- | | OUT\\X0000L00.tif]"); | | | | | | Can anyone help me with how to get the right syntax? Once I understand | | it, I hope to substitute parts of the parameter string with variables | | calculated during my loop. But if I don´t even know the right | syntax, I | | can´t get started! | | |> - -- passerelle antivirus du campus CNRS de Montpellier - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFIfK4+xZKX7A/4oMERArh3AKDHO4McJCjYWMX4GD/pOeYRyz7ungCXdUvA aC29PAlbwcAcmwHDkOQ33g== =k/3o -----END PGP SIGNATURE----- -- passerelle antivirus du campus CNRS de Montpellier -- |
Hmmm...
Hmm. I noticed the doubled save command, too. For some reason, this is what comes out of the macro recorder. Is it not necessary? Maybe too long a path, or a doubled-up path cause the line to be misread? Is there a limit to the length of a line of code in a macro? Thanks, Bill >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >I tried with 1.40g and for me it still works. I changed the path a bit >since your path doesn't exist on my machine. Can you try to copy and run >the following: > >run("Image Sequence... ", "format=TIFF name=X0000L start=0 digits=2 >save=[C:\\Documents and Settings\\X0000L00.tif]"); > >(remove the line-breaks that the email client might add) > >By the way your command contains the save=... part two times. But it >works even with this. > >Volker > > >Bill Mohler a écrit : >| In my code there aren't any line-breaks. It's all on one line. >| >| I'm on version 1.40g on Windows. >| >| Still doesn't work. >| >| It works fine (with imagej 1.41b) if I remove the line-breaks. >| Volker >| Bill Mohler a écrit : >| | I am trying to save a stack as an Image Sequence of TIFFS in a macro >| that >| | loops through a whole folder of stacks. >| | >| | Currently my problem seems to be that the macro interpreter does not >| like >| | the syntax that the macro recorder creates for the Image Sequence >| | command. Below is what I recorded with the recorder. When I use the >| | exact same line in my macro, I get an error saying that a "," or ")" >| are >| | expected in this line. >| | >| | run("Image Sequence... ", "format=TIFF name=X0000L start=0 digits=2 >| save= >| | [C:\\Documents and Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3 >| | \\WA OUT\\IJ-MACRO-OUT\\X0000L00.tif] save=[C:\\Documents and >| | Settings\\leica\\Escritorio\\USUARIOS\\Laboratorio 3\\WA OUT\\IJ-MACRO- >| | OUT\\X0000L00.tif]"); >| | >| | >| | Can anyone help me with how to get the right syntax? Once I understand >| | it, I hope to substitute parts of the parameter string with variables >| | calculated during my loop. But if I don´t even know the right >| syntax, I >| | can´t get started! >| | >|> >- -- >passerelle antivirus du campus CNRS de Montpellier >- -- > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.6 (MingW32) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >iD4DBQFIfK4+xZKX7A/4oMERArh3AKDHO4McJCjYWMX4GD/pOeYRyz7ungCXdUvA >aC29PAlbwcAcmwHDkOQ33g== >=k/3o >-----END PGP SIGNATURE----- > >-- >passerelle antivirus du campus CNRS de Montpellier >-- -- ----------------- William A. Mohler Associate Professor Dept. of Genetics and Developmental Biology University of Connecticut Health Center MC-3301 263 Farmington Ave. Farmington, CT 06030-3301 [hidden email] Mobile: (860) 331-8514 Office: (860) 679-1833, room E2056 Lab: (860) 679-1834, room E2052 Fax: (314) 689-1833 G&DB dept. ofc.: (860) 679-8350 G&DB dept. fax : (860) 679-8345 http://genetics.uchc.edu/Faculty/Mohler/Mohler.html |
Free forum by Nabble | Edit this page |