Hello Michael L Hale, Michael L Hale wrote: … But it is really not that useful to use the defalut because it doesn't work with all Photoshop methods or properties. For example myColor = new SolidColor(); backgroundColor = myColor; will throw the same internal error message … understand fun? //MakeNewDocFillWithBGColor.jsx var Syntax = false; var docRef = app.documents.add(300, 300, 72, null, NewDocumentMode.RGB, DocumentFill.TRANSPARENT); var selRef = app.activeDocument.selection; var myAlert = null; try { myColor = new SolidColor(); backgroundColor = myColor; Syntax = true; selRef.fill( backgroundColor, ColorBlendMode.NORMAL, 100, false ); myAlert = "No No No"; } catch (e) { $.sleep (999); if (Syntax == false) { var MakeSyntax = true; myColor = new SolidColor(); backgroundColor.rgb.hexValue = myColor.rgb.hexValue; selRef.fill( backgroundColor, ColorBlendMode.NORMAL, 100, false ); myAlert = "Script runs, if MakeSyntax == "+MakeSyntax; } } alert(myAlert,"Have Fun") greetings
... View more