I want to package a illustrator file using "executeMenuCommand". I tried its trigger the dialog box for the further selection. I want to execute the command without the dialog box.
app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS;
app.executeMenuCommand ("Package Menu Item");
Thanks in Advance.
My guess is that you probably can't do this, though i've never tried. The problem is i don't believe you can pass arguments to the package command, so the package functionality wouldn't know what settings to use.
I had a thought that maybe you could use an action, but i tested that out and it doesn't work.
Depending upon your needs, a script may be able to mimic the functionality of the package command.