Answered
run script on startup
how can i run script automatically at strat of illustrator?
how can i run script automatically at strat of illustrator?
Try to replace your existsing code with
if (app.documents.length) {
app.executeMenuCommand('Print')// JavaScript Document
//Here, add your more code if exists
}
// JavaScript DocumentAlready have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.