Quit Scribus via. Scripter API

Previous topic - Next topic

digirew

I would like to run a script via. Scripter API, and then once its done, to also quit Scribus.

Does anyone know if this is possible?

a.l.e

yes:

http://impagina.org/scribus-scripter-api/dialog/#filequit

if you're starting scribus to run a specific script and then want to quit, there is a command line switch to get scribus to quit once it's done.

digirew

I looked at that api page high and low and did not see it, thanks for pointing it out.

Just tried it and works like a charm.




a.l.e

indeed, it's a bit awkward to have it in the dialogs sections.

we probably need a second version of quit that does not have anything to do with the dialog.

anyway, in the top left corner of the API unofficial documentation there is a search field: i simply typed quit in there and got two matches. one of both was the right one : - )
yes, i'm a lazy guy.

dragonfly

At the end of the script you could run a command through subprocess to kill Scribus process.
Or invoke Ctrl+Q hotkeys.