Have ppt_printout_ps.vbs take the printer name as an argument.
Misc. changes in Makefile.sample.
4 If WScript.Arguments.Count <> 3 then
7 printer = WScript.Arguments.item(0)
8 filein = WScript.Arguments.item(1)
9 fileout = WScript.Arguments.item(2)
13 Set pptApp = Wscript.CreateObject("PowerPoint.Application")
15 Set pptPres = pptApp.Presentations.Open(filein)
17 With pptPres.PrintOptions
18 .RangeType = ppPrintAll
20 .PrintHiddenSlides = msoTrue
21 .PrintColorType = ppPrintColor
23 .FrameSlides = msoFalse
24 .ActivePrinter = printer
25 .PrintInBackground = False
27 pptPres.PrintOut , , fileout
31 For i = 1 To pptPres.Slides.Count
32 Wscript.StdErr.Write "Processing slide " & i & "... "
33 note = pptPres.Slides(i).NotesPage.Shapes(2).TextFrame.TextRange
34 WScript.StdOut.WriteLine note
35 WScript.StdOut.WriteLine Chr(12)
36 If InStr(note, "@file=") > 0 Then
37 pptPres.Slides(i).Export filein & ".tmp_slide" & i & ".png", "PNG"
39 Wscript.StdErr.WriteLine "done"