Create layers - no dialog


the following sl code create layers

// =======================================================
var id65 = charidtotypeid( "mk  " );
var desc10 = new actiondescriptor();
var id66 = charidtotypeid( "null" );
var ref4 = new actionreference();
var id67 = charidtotypeid( "lyr " );
ref4.putclass( id67 );
desc10.putreference( id66, ref4 );
var id68 = charidtotypeid( "usng" );
var ref5 = new actionreference();
var id69 = charidtotypeid( "prpr" );
var id70 = charidtotypeid( "lefx" );
ref5.putproperty( id69, id70 );
var id71 = charidtotypeid( "lyr " );
var id72 = charidtotypeid( "ordn" );
var id73 = charidtotypeid( "trgt" );
ref5.putenumerated( id71, id72, id73 );
desc10.putreference( id68, ref5 );
executeaction( id65, desc10, dialogmodes.no );

 

but there anyway supress "some aspects of effects cannot reproduced layers!" dialogue? irony being that  inclusion of dialogmodes.no doesn't seem work.

 

i know can around situation ticking "don't show again" box. that's not i'm after don't want dialogues popping whilst script running. (fire , forget scripting )

app.activedocument.artlayers.add()

 

on machine sl code works without , dialog. if use layer menu dialog adding layers , dupimg layers. did use have scriptlistner generate code.



More discussions in Photoshop Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support