Hi Alvin,
Am 26.01.2017 um 14:09 schrieb alvinpenner:
This is two questions, actually, somewhat loosely related:
- I would like to run a DOS command such as:
inkscape --verb=dosomething --verb=FileSaveAs \windows\temp\testtext.svg
Currently this command will present me with a SaveAs dialog with the current file name and the filetype svg. I would like to specify, in the command line, either the file type for the Save As operation, or perhaps the filename with the filetype as well, so that the operation could perform silently. Not sure what the syntax would be for this.
- A couple of months ago, another kind of command line options was added. They're called XVerbs, but I /think/ they only exist in trunk, and they're not documented... (see http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15147, http://inkscape.13.x6.nabble.com/xverbs-td4976472.html, https://sourceforge.net/p/inkscape/mailman/message/35392523/)
As far as I understand, they support giving the 'save as' file name on the command line - but I have no idea how they work.
- Alternately, if this is not possible, is it possible to execute verbs
from inside a Python script? So, for example, if I were in the Python extension dxf_outlines.py for saving a dxf file, can I execute the verb "--verb=ObjectToPath" and get output from it?
- Yes, see for example https://github.com/Moini/inkscape-extensions-multi-bool (it re-imports the changed document into the current session, but you can do with it whatever you want - it probably has flaws, but seems to work for many).
Regards, Maren
tia, Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/Is-it-possible-to-specify-the-filetype-or-f... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel