Locking the read only status of an ImageJ macro file (.ijm)

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

Locking the read only status of an ImageJ macro file (.ijm)

Mehling, Chris
Hello,

Does anyone know how to rev control, or lock the read only status  of an imageJ macro (.ijm file)?

The background purpose is to be able transfer the file between users with reduced risk of the lines of the macro being altered.

Also, it is alright if the change is not truly permeant but just displays a warning or notification to the user when the file is altered or about to be altered.


Thank you


Chris Mehling
[hidden email]<mailto:[hidden email]>


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Locking the read only status of an ImageJ macro file (.ijm)

Fred Damen
Greetings Chris,

Making a file readonly is a function of the OS and is OS specific.  If you
use RSync to transfer files it has an option to maintain permissions
during transfer. If you use a file packaging to transfer files, e.g., tar,
the tool you use to pack/unpack can be asked to preserve the file's
permissions; albeit NOT zip.

Most ascii text editors that I have used will recognize the fact that a
file is readonly and tell the user.

Fred


On Mon, February 1, 2021 3:20 pm, Mehling, Chris wrote:

> Hello,
>
> Does anyone know how to rev control, or lock the read only status  of an
> imageJ macro (.ijm file)?
>
> The background purpose is to be able transfer the file between users with
> reduced risk of the lines of the macro being altered.
>
> Also, it is alright if the change is not truly permeant but just displays
> a warning or notification to the user when the file is altered or about to
> be altered.
>
>
> Thank you
>
>
> Chris Mehling
> [hidden email]<mailto:[hidden email]>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Locking the read only status of an ImageJ macro file (.ijm)

jmutterer
In reply to this post by Mehling, Chris
Hi Chris,
I have a "Safe Macro" plugin that you can use to "seal" you *.ijm files by
adding a hash of the file content to the filename.
Then you can use the same plugin to run these files, and the hash will be
checked against the current file content, and the macro is run if the
content didn't change, or it will fail with a message that the macro was
changed.

Jerome.



On Mon, 1 Feb 2021 at 22:31, Mehling, Chris <
[hidden email]> wrote:

> Hello,
>
> Does anyone know how to rev control, or lock the read only status  of an
> imageJ macro (.ijm file)?
>
> The background purpose is to be able transfer the file between users with
> reduced risk of the lines of the macro being altered.
>
> Also, it is alright if the change is not truly permeant but just displays
> a warning or notification to the user when the file is altered or about to
> be altered.
>
>
> Thank you
>
>
> Chris Mehling
> [hidden email]<mailto:[hidden email]>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html