Open Source 2D CAD
Any ECMAScript file can be executed with the QCAD binary as a standalone application, using the -autostart command line argument:
The default autostart script is scripts/autostart.js, which launches the QCAD application. If the autostart script is given as command line argument, the default autostart script is not launched.
If your script does not require or does not have access to a user interface (for example in a server environment), you may pass the command line switch -no-gui to QCAD:
Under Mac OS X, you might also want to use -no-dock-icon to prevent Mac OS X from showing a dock icon everytime your application is launched: