Macro for setup and print pdf

HI.

I am trying to set up a macro to take all layouts in my file. Print them in one PDF and making sure the different settings of papersize, raster and so is set correct.
I have made the macro like this:
-Print Setup Destination
Printer “Rhino PDF”
PageSize 420 297
OutputType=Raster
OutputColor=PrintColor
CalibrateXScale=1
CalibrateYScale=1
Enter
View
Scale 1
AllLayouts
Enter
Margins
LeftMargin=0
RightMargin=0
TopMargin=0
BottomMargin=0
Enter
Enter

But it is not working when i use it.
I can not set the destination folder in the macro. The setting of printing all layouts seemes to not work. If i just press go in the end it looks linke it is printing but i don’t know where to.
Here a view of the command line when running the macro.

What have i done wrong or is it at bug in Rhino?

This looks like an issue in our macro system when it comes to strings with spaces in them as it is having trouble with the “Rhino PDF” string. I’m investigating what can be done here.

Hi Steve.
That make sense. Hope you can find a way to solve it.

RH-90760 is fixed in Rhino 8 Service Release 27