I'm using UES 10.30.0.1003
I'm hoping for some help with this one:
I have several files which are in this format:
some text here 01 more text
some text here 04 more text
some text here 09 more text
...
the text itself is rather random (and can contain numbers), and the only thing you can be sure of is that all numbers starts at the same column as the first one, hence
the need for columnmode or similar.
what I'm looking for is a way to increment/decrement the value in all selected lines by a number such as 10.
Using the text above the result would be:
some text here 11 more text
some text here 14 more text
some text here 19 more text
...
The api for scripting seems to miss some items related to selections, or there's something I'm missing in the documentation.
It would be nice with things such as selStartLine, selStartColumn, selEndLine,selEndColumn and selectedLine[number] or similar
to make such operations a bit easier.
btw, can activeDocument.selection handle columnmode at all?
So far I haven't managed to get it to do so.
It seems to return some random text from the document (which may not necessarily be from within the selection) if
columnmode is enabled.
I'm hoping for some help with this one:
I have several files which are in this format:
some text here 01 more text
some text here 04 more text
some text here 09 more text
...
the text itself is rather random (and can contain numbers), and the only thing you can be sure of is that all numbers starts at the same column as the first one, hence
the need for columnmode or similar.
what I'm looking for is a way to increment/decrement the value in all selected lines by a number such as 10.
Using the text above the result would be:
some text here 11 more text
some text here 14 more text
some text here 19 more text
...
The api for scripting seems to miss some items related to selections, or there's something I'm missing in the documentation.
It would be nice with things such as selStartLine, selStartColumn, selEndLine,selEndColumn and selectedLine[number] or similar
to make such operations a bit easier.
btw, can activeDocument.selection handle columnmode at all?
So far I haven't managed to get it to do so.
It seems to return some random text from the document (which may not necessarily be from within the selection) if
columnmode is enabled.