Suppress dialog box in Illustrator

Post Reply
erikotto
Newbie
Posts: 2
Joined: Fri Sep 16, 2016 4:33 pm

Suppress dialog box in Illustrator

Post by erikotto »

I am batch processing jobs using the Illustrator configurator in Switch 13 and need to stop the Dialog Box from appearing and stopping the flow of jobs... Any ideas would be appreciated.
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Suppress dialog box in Illustrator

Post by gabrielp »

Which dialog?
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
erikotto
Newbie
Posts: 2
Joined: Fri Sep 16, 2016 4:33 pm

Re: Suppress dialog box in Illustrator

Post by erikotto »

all, but specifically the message says "This file has been edited outside of Illustrator..."
loicaigon
Member
Posts: 147
Joined: Wed Jul 10, 2013 10:22 am

Re: Suppress dialog box in Illustrator

Post by loicaigon »

It's funny because it seems that on my side, whatever the interaction settings I defined, Switch switch interaction off but don't reset it after the file passed the configurator.
Anyway you can change the userrinteraction level through a script on the open command instead of automatic.

Use this and see if it works for you:

Code: Select all

var main = function() {
	var uip = app.userInteractionLevel;
	
	app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS
	app.open ( File ( String($infile) ) );
	app.userInteractionLevel = uip;
	
}
main();
HTH

Loic
Post Reply