Publish from the commandline
credit to: Valentin Schmidt - Thu, 27 Jan 2005 Direct-L
Using DispatchCommand() to publish from the commandline with DMX2004 and windows.
Create a little dir (e.g. 240 * 32 px) with the following frame-script on frame 2 or later:
on exitFrame cl=the commandLine if cl.word[1] = "-p" then tell the stage go movie cl.word[2] dispatchCommand(4104) quit() end tell end if end
Mark this movie as "dockable" in the display template settings, save it (e.g. as "publish.dir"), close director, put it in director's xtras folder, restart director, open the movie (miaw xtra) and "dock" it to some permanently visible panel.
From now on, whenever you start director from the commandline (DOS box) with a line like
Director.exe -p test.dir
Director will popup, open test.dir, publish it (with the last choosen publish settings) and quit again. if you open it normally (without the "-p" switch) nothing has changed.