Answered
How to open trap dialog box
How to open Image/Trap dialog box with javascript?

I know that i can complete trap with app.activeDocument.trap(), but is it possible just to open this dialog with a script?
Thanks
How to open Image/Trap dialog box with javascript?

I know that i can complete trap with app.activeDocument.trap(), but is it possible just to open this dialog with a script?
Thanks
Did you record the code with ScriptingListener.plugin yet?
If so changing »DialogModes.NO« to »DialogModes.ALL« usually works to raise the corresponding dialog.
By @c.pfaffenbichler
Yes it does work, you beat me to the post! :]
var idtrap = stringIDToTypeID( "trap" );
var desc179 = new ActionDescriptor();
var idwidth = stringIDToTypeID( "width" );
var idpixelsUnit = stringIDToTypeID( "pixelsUnit" );
desc179.putUnitDouble( idwidth, idpixelsUnit, 1.000000 );
executeAction( idtrap, desc179, DialogModes.ALL );Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.