been trying to create a macro to open a 3rd party text editir (i.e Kate/blank.txt) without success.
do not want Libre Writer, needs to be a text editor.
is this possible????
Allow me to addon.....
I can create a hypo link to open Kate/blank.txt, but can a macro be made to open, and then save the file with a specific name???
Can Calc Open 3rd Party Text Editor
Can Calc Open 3rd Party Text Editor
LibreOffice 7.5, Debian 12
Re: Can Calc Open 3rd Party Text Editor
You need to study the Kate API - you will want to send commands from Calc to Kate. And that's really a question that you should ask at a Kate forum.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Re: Can Calc Open 3rd Party Text Editor
You can open a file with SystemShellExecute. This works for me on Windows, I presume Linux also.
Controlling an external application afterwards is something different - I suggest renaming or making a copy with the name you want before opening.
(Edit: If Kate doesn't allow the passing of the file path on starting the above won't work of course.)
Code: Select all
oSvc = createUnoService("com.sun.star.system.SystemShellExecute")
oSvc.execute(ConvertToUrl("C:\windows\notepad.exe"), "C:\tmp\a.txt", 0)
(Edit: If Kate doesn't allow the passing of the file path on starting the above won't work of course.)
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)