Hello,
I want to perform certain tasks via a macro on the data of manually selected strings in one or more opened translation lists.
To do that I first need to check, which strings were selected manually before.
There seems to be no COM method or property to check if a string is currently selected. Among other things I had a look at "PslTransString.State", but there is no state like "Selected".
The only possibility I have found so far is to assign a special comment to the selected strings. Fortunately this also works for strings in multiple opened translation lists (although the "NOTE" in "Translation Comment" states something else).
The comments of all selected strings are set to "to be processed" afterwards.
The macro could then identify all selected strings via the assigned special comment and perform some operations on the string data (to preserve already existing comments the macro first needs to store already existing comments in a list and rewrite them in the end).
To have to assign a special comment first (e.g. a single character like "§") to the selected strings is a bit laborious for the user.
Would be nice if there exists a simpler method to detect selected strings in a translation list.
Have I perhaps overlooked something in the COM reference?
Best regards
Karl-Heinz
Generated Image Alt-Text
[edited by: RWS Community AI at 2:52 PM (GMT 0) on 14 Nov 2024]