Dia Script Launcher is a plugin for Dia diagram program, that lets to launch a script, choosen from a customizable list, directly from Dia program.

In commands is possible to use some template strings that will be replaced with diagram currently edited full path, diagram layer name or number or list of id of selected objects in diagram (these Id's are the id attribute value of corresponding selected objects that you can see in diagram xml file saved by Dia)

Command list is easily customizable (as you can edit a text file).

From the Script Launcher dialog you can:
  • choose the directory
    where the command will be executed
  • prepend and append additional parameters to the command to launch (template string substitution will be done in additional parameters too)
  • edit the list of commands (you have to set the text editor to use in configuration file)
  • see the stderror and stdoutput of execution

All the commands will be executed as if you typed them in a shell; the standard error and output will be printed directly in Script Launcher dialog.

Screenshots

Script launcher in Dia menu

Script launcher dialog