Textpad does not allow users to type anything to a read only file. This is a good feature in my opinion. However when I toggle the read only status of a file (i.e set the file either read only or writable) from a macro within TP, TP is not aware of this change until I refresh TP again by activating/deactivating the main window.
Specifically I have a Textpad macro for opening a file for edit from Perforce (version control system):
OPEN FILE FOR EDIT
Command: drive:\path\to\p4.exe
Parameters: edit $File
Initial Folder: $FileDir
Capture output: off
Run minimized: on
TO REPRODUCE FLAW
1. Open file in Textpad. File is read only, unable to edit. Ok.
2. Run macro to open file for edit. File now writable, still unable to edit. Not ok.
3. Alt-tab back and forth. File still writable, but now I am able to edit. Ok.
I don't have a good suggestion how to solve this without actually alt-tabbing or otherwise force Textpad to update the file status.
Help anyone?
Dan
--
Textpad 4.7.1
Changing read only flag with macro not immediately detected
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard