Ask Your Question

Goody's profile - activity

2014-08-26 14:03:46 +0200 received badge  Nice Question (source)
2014-06-05 03:49:21 +0200 received badge  Taxonomist
2014-04-09 00:37:08 +0200 received badge  Famous Question (source)
2014-04-09 00:37:08 +0200 received badge  Notable Question (source)
2013-05-11 09:56:56 +0200 received badge  Popular Question (source)
2013-02-16 00:01:31 +0200 received badge  Self-Learner (source)
2013-02-16 00:01:31 +0200 received badge  Teacher (source)
2013-02-08 03:22:41 +0200 received badge  Student (source)
2013-02-01 20:32:48 +0200 answered a question How do you close LibreOffice Calc from a macro?

The particular systems that this script will go on will not have the wmctrl tool, so that's out. I need another way to gracefully shut down office. When I tried using killall to bring it down, the next time I'd start it up, it would want to do recovery mode, and I can't have that. Also, we don't need to worry about document saving because that is the point of this macro (sorry for not mentioning that earlier). This would be so much easier if there were some kind of close command in Basic.

2013-01-31 23:49:32 +0200 answered a question How do you close LibreOffice Calc from a macro?

My OS is Red Hat Enterprises Linux 6. I will have to try to see if I can't get the above code to work. Thanks.

2013-01-30 20:57:53 +0200 asked a question How do you close LibreOffice Calc from a macro?

I am writing a shell script that runs a macro on a specified document in LibreOffice Calc. After the macro is ran, I would like Libre to automatically close. However, if I try to kill Libre from the script, it just crashes and freezes up instead of closing, so I was wondering if it might be possible to just run some command at the end of the macro that would close LibreOffice.

I also tried running it in both headless and invisible mode, but I must've had a misunderstanding of what they do, because all they did was prevent any dialogue boxes from popping up instead of actually preventing Libre from pooping up. If it helps any here is the line from the shell that starts Libre, opens the file, and runs the macro:

  soffice "macro:///Standard.SaveCSV.Main" $1

All help is appreciated!