Inkscape.org
Creating New Extensions command line to run idraw extension
  1. #1
    curiouscat03 curiouscat03 @curiouscat03

    Hi,

    I am trying to run the idraw extension via the command line using  /Applications/Inkscape.app/Contents/MacOS/inkscape --actions=command.idraw2.0-manager.noprefs but it immediately crashes. Is it possible to run an extension from the command line?

     

  2. #2
    inklinea inklinea @inklinea⛰️

    Trying using 

    inkscape --batch-process --actions=.................

  3. #3
    curiouscat03 curiouscat03 @curiouscat03

    Thank you it no longer crashes and the pen moved up. Is there a way to access different actions that are under the idraw extension? I attached picture

     

    inkscape --batch-process --actions=command.idraw2.0-manager.noprefs apply(where apply is a button under the plot)

     

     

    Screen Shot 2023 06 08 At 4.35.13 Pm
  4. #4
    inklinea inklinea @inklinea⛰️

    No, it's not possible to pass parameters to extensions via the command line. 

    There are two modes, the extension name only brings up the extension dialogue and the extension name with .noprefs at the end just runs the last user settings from when Inkscape was last cleanly exited. 

     

  5. #5
    curiouscat03 curiouscat03 @curiouscat03

    Okay I see. Sorry what is the extension dialogue?

  6. #6
    inklinea inklinea @inklinea⛰️

    The window that is generated from the .inx file.

    What you see when you launch the extension in the Inkscape.

  7. #7
    curiouscat03 curiouscat03 @curiouscat03

    I see. thank you for the clarification.

Inkscape Inkscape.org Inkscape Forum Creating New Extensions command line to run idraw extension