On Thu, 1 Mar 2007, bulia byak wrote:
However the --select option does not work for me - it complains that it cannot find the verb with this id, even though I'm trying to select an object. I see both these things are done by the same piece of code but something seems to be messed up and it mistakes object id for verb id.
Err, SVK messed this up :( I'm not near a computer that I can fix this and check it in. So can someone change this:
1410 new Inkscape::CmdLineAction(a, arg);
to:
new Inkscape::CmdLineAction(a == SP_ARG_VERB, arg);
That should fix it.
When it's fixed, is it possible to use more than one --select in the same command line? For example, to write a script like: select one object, delete, select another, duplicate, deselect, select all, rotate, etc.
Yes, it does that. Basically every verb and select command is put into a list, and that list is executed on every document. You can have as many select and verb commands as memory allows.
Also, since you changed command line interface, please don't forget to update inkscape.pod. Thanks again!
I will. I did forget about that.
--Ted