Suppress dialog box in Illustrator

Post Reply
erikotto
Newbie
Posts: 3
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: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Suppress dialog box in Illustrator

Post by gabrielp »

Which dialog?
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
erikotto
Newbie
Posts: 3
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
Advanced member
Posts: 380
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