.vsi Batch Processing to .tif

I have modified a function to batch process .vsi. At one point in the function I run add slice:

run("Add slice");

But doing that opens up a dialogue, asking if I want to do channel and if I want to Prepend. I do want to prepend.

I found that doing the following will skip the dialogue and add a slice to the stack:

run("Add slice", "Add=channel Prepend=1");

However, this line of code doesn’t prepend, so the slices are out of order! Any thoughts?

Welcome to the forum, @Arri_Ferrari!

Use the macro recorder to get the correct syntax. It will record:

run("Add Slice", "add=channel prepend");