Thread Locked This thread is locked - replies are not allowed.

Permlink Replies: 0 - Pages: 1

Posts: 4,119
Registered: 4-Aug-2006
Apply text in files to comments
Posted: 3 Jan 22, 22:02
This texts to comments tool will read '.txt' and/or '.html' files that have the same base name as a project object and apply the text to the object's comments. The text files can be within the project's root directory, alongside the project object, or in an entirely separate location from the project.

You can process the whole project, the displayed folder and its subfolders or only the displayed folder. The texts can be prepended, appended or applied to the comments field.

Run the tool, select the location of the text files, select the scope and text option and click OK. The number of edits made is displayed along with a detailed report in the system console.

Note, if both txt and html file types are selected and both file types exist for a given object only one will be used. The one used is not guaranteed!

Thanks for suggestions and code updates to MarkusD.

Full details at

Edited by: RobM on 15 Oct 2022, 21:22
Converted to Groovy script. Added trap to prevent a crash if web page templates are included in mirrored projects. Those pages in mirror projects will not currently be updated with any related text file.

Edited by: RobM on 24 Oct 2022, 22:44
Updated to work with '.' in file names (though I think it best not to include them ;) )

Edited by: RobM on 1 Nov 2022, 21:06
Rewrite to simplify and complicate all in one go!
Reduced 3 methods to one, now checks if txt files are in project or not (2 methods instead of 1) which allows excluded folders and objects to be ignored.
Added work queue monitor to show progress bar on potentially long processes
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums