script that rasterizes selected elements to a single image in Illustrator
I want to create a script that rasterizes selected elements to a single image according to defined parameters. I am interested in CMYK, 200ppi, background: white, preserve spot colors.
Can I somehow use app.executeMenuCommand("Rasterize 8 menu item") for this?
I tried to find something on the subject but failed. Does anyone have a hint?
I have it so far, but I'm stuck on the pop-up 😕😕
// select all
app.executeMenuCommand("selectall");
// rasterize
app.executeMenuCommand("Rasterize 8 menu item")
