Closed ajtruckle closed 6 months ago
The feature is now accessible in the Script Editor. However, it's important to note that users are advised against modifying the built-in templates. Any alterations made to these templates will be overwritten, as the software compares the timestamps with the original installation files. Nonetheless, users can now modify the read-only status.
Help topic: https://www.publictalksoftware.co.uk/help-msa/msa-advanced-editor-menu-edit.html
- Set Read-Only Sets the Windows Operating System (OS) read-only attribute on the current document. This prevents further editing until the read-only flag is cleared. This is useful for protecting the file from accidental modification.
- Clear Read-Only Flag Clears the Windows Operating System (OS) read-only attribute on the file, allowing it to be edited again. Use this command if you need to make changes to a previously protected text file.
@ajtruckle
When trying to edit built-in files (CSS, XML, XSL) the file should be read-only by default. No editing possible. If the user decides to remove the read-only flag of these files, maybe Save As dialog might open first to direct them save it under different file name and then they can modify file as they wish.
@cengizu I am sending you a new beta with addresses two issues:
The editor should now reflect the read-only flag state. But there is one scenario that I did not cater for:
When trying to edit built-in files (CSS, XML, XSL) the file should be read-only by default. No editing possible. But normal circumstances this is the case. Unless the user fiddles with the files or installer setup. At the moment the software will only revert to the original file if te time stamp had been tampered with. It won't replace it if they removed the read-only flag. If you think this behaviour should change then I feel it should be a separate ticket.
If the user decides to remove the read-only flag of these files, maybe Save As dialog might open first to direct them save it under different file name and then they can modify file as they wish.
I hear what you're saying. But I feel that this would not be normal behaviour. If I chose an option to remove a setting, then I expect it to remove that setting. For it to suddenly show up a Save As window with no explanation will be confusing IMHO. For now I think I will leave it as it is.
The only alternative is to disable the Clear Read-Only Flag" menu item when they have a built-in file open. But I don't want to make this overly complex. I already have my safety mechanism to reset the files if tampered with. They'll soon learn that they should save the file with a new name first. I don't have to address every situation. Agreed?
New beta on it's way to you.
@cengizu I have made the necessary changes. It is now not possible to change the read-only flag state when the file is in a modified state.
New beta on it's way to you.
@ajtruckle
Works good 👍
In NotePad++ It handles this issue like this:
Fortunately, Notepad++ has their translations available online! So I have collated the ones we need:
I propose implementing the same functionality. This way, it becomes easier for the user:
Originally posted by @ajtruckle in https://github.com/ajtruckle/meeting-schedule-assistant-support/issues/65#issuecomment-2094912838