Inkscape.org
Beyond the Basics Does command line accept a script file?
  1. #1
    sergejzr sergejzr @sergejzr

    Dear Inkscapers,

    I started working with the command line, and it is going fine so far, however, I do a lot of actions at once and managing the long list is becoming difficult.  

    What I wish, is being able to supply a (textual) script file with actions and comments to inkscape (something like "mysql < myscript.sql"). However, though such an option seems natural to me, I could not find it so far. Did I oversee something? Or it is somehow indented and we should continue using bash scripts, splitting commands into lines?

     

    Thank you!

    Sergej

  2. #2
    inklinea inklinea @inklinea⛰️
    *

    Inkscape has a shell mode, designed to work faster:

    https://wiki.inkscape.org/wiki/Using_the_Command_Line#Shell_mode

    If you are using windows - this thread might be useful : 

    https://inkscape.org/forums/beyond/passing-a-batch-file-to-inkscape-in-shell-mode/#c26221

    also I would use powershell over windows cmd due to character limitation 

    https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation

  3. #3
    sergejzr sergejzr @sergejzr

    Thank you, inklinea,

    it is a little workaround, but does the thing!

    Best

    Sergej

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Does command line accept a script file?