is it possible - Calc macro start program 'gedit' with file name
Wed, 18 May 2016 - 11:02 AM
I’m running Ubuntu. Is it possible running a libreoffice calc macro, to start a system program e.g. from terminal. I just want to give a user an option to view a file.
Here is what the command would look like:
gedit myDir+”/convertNames.log”
Now I have successfully opened “convertNames.log” with writer in the macro I’m writting, but that is too much for just viewing a log file.
Any idea’s
Thanks,
Thu, 19 May 2016 - 12:00 PM
#2
works perfect, thanks, I made
works perfect, thanks, I made a modification so I can use a variable, and it all works. Here is what it ended up to look like.
—————-
sText = “bash -c ‘gedit “ + Targetname + “’”
Shell sText
—————-
Much obliged.
Currently use this line in a base macro:
Also used ‘curl’ & others – xubuntu and Mint.
Yours would be:
Tested it with one of my files & works fine. Just make sure you test your statement in Terminal first. Statement as shown will produce nothing if there are errors.