Hi all,
I am trying to write a script that takes some text from a buffer and paste it to a new tab.
the text extraction part is fine, but I can not figure how to open a new tab and paste the text there.
so far I am trying with:
#creating in advance a file
io.open ("Ciro.txt" ,"a+")
#opening it in Scite
scite.Open("Ciro.txt")
#for some reason the UndoAction does not work
editor:BeginUndoAction()
last_line=editor.LineCount
u = editor:PositionFromLine(last_line)
editor:GotoPos(u)
#finally paste
editor:Paste()
editor:EndUndoAction()
it works, but I'm almost sure there is a better way to open a new tab and paste the text there.
Thank you
Amir