IanBarber
Contributor
IanBarber
Contributor
Activity
‎Apr 01, 2019
01:45 AM
What if I had this situation where I want to remove Mask1, mask2, Mask3 Would I need to run your suggestion 3 times or can it be all included in a single function
... View more
‎Apr 01, 2019
01:28 AM
I should have maybe said a channel For example, I make a selection and save the selection as Mask1 and it puts it in the Channels
... View more
‎Apr 01, 2019
01:00 AM
1 Upvote
I am looking for a way to loop through all the channel masks and only remove the ones with specific names. Example: I may have the following channel masks.. Mask1 Mask2 Mask3 I need the script to loop through all the channels and remove Mask1 , Mask2, Mask3 if found. Any other masks with different names are to be ignored. Has anyone got a s script or can help me create one to achieve this please.
... View more
‎Mar 30, 2019
02:54 AM
Your code worked 100%. I created an action and this is what the Listener displayed. Is this what you got? Maybe I am just reading the Listener output properly // ======================================================= var idPly = charIDToTypeID( "Ply " ); var desc79 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref7 = new ActionReference(); var idActn = charIDToTypeID( "Actn" ); ref7.putName( idActn, "test" ); var idASet = charIDToTypeID( "ASet" ); ref7.putName( idASet, "test" ); desc79.putReference( idnull, ref7 ); executeAction( idPly, desc79, DialogModes.NO ); // ======================================================= var idmodalHTMLPending = stringIDToTypeID( "modalHTMLPending" ); var desc80 = new ActionDescriptor(); var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" ); desc80.putBoolean( idkcanDispatchWhileModal, true ); var idisPending = stringIDToTypeID( "isPending" ); desc80.putBoolean( idisPending, false ); var idExtn = charIDToTypeID( "Extn" ); desc80.putString( idExtn, """com.adobe.WEBPA.crema.saveforwebdocument""" ); executeAction( idmodalHTMLPending, desc80, DialogModes.NO );
... View more
‎Mar 30, 2019
02:37 AM
I am also trying to show the Export As Window but not having much success
... View more
‎Mar 29, 2019
01:46 PM
Thank You. May I ask how you arrived at that because I am also trying to do the same for Export AS Ian
... View more
‎Mar 29, 2019
01:21 PM
I am trying to show the Image Size dialog box but for some reason I just cannot get it work. I thought about using app.runMenuItem(charIDToTypeID( '' )); but I am not sure what the ID is for the Image Size Dialog. I have also tried this code which I got from the Listner but again, I cannot get that to work. Can anyone help please // ======================================================= var idinvokeCommand = stringIDToTypeID( "invokeCommand" ); var desc159 = new ActionDescriptor(); var idcommandID = stringIDToTypeID( "commandID" ); desc159.putInteger( idcommandID, 1030 ); var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" ); desc159.putBoolean( idkcanDispatchWhileModal, true ); executeAction( idinvokeCommand, desc159, DialogModes.NO ); // ======================================================= var idmodalStateChanged = stringIDToTypeID( "modalStateChanged" ); var desc160 = new ActionDescriptor(); var idLvl = charIDToTypeID( "Lvl " ); desc160.putInteger( idLvl, 1 ); var idStte = charIDToTypeID( "Stte" ); var idStte = charIDToTypeID( "Stte" ); var identer = stringIDToTypeID( "enter" ); desc160.putEnumerated( idStte, idStte, identer ); var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" ); desc160.putBoolean( idkcanDispatchWhileModal, true ); var idTtl = charIDToTypeID( "Ttl " ); desc160.putString( idTtl, """Image Size""" ); executeAction( idmodalStateChanged, desc160, DialogModes.NO );
... View more
‎Jan 27, 2019
01:05 AM
I can get the outer shadow to show but for some reason, the inner top and inner right shadow is not showing. Can you attach the psd ?. I am wondering if my preferences need resetting
... View more
‎Jan 26, 2019
12:34 PM
I am trying to create an action to make a photo frame like the one below. What I am finding difficult is how to create the outer and inner shadows. Any help appreciated
... View more
‎Jan 15, 2019
01:33 PM
In Photoshop, when you double click the Black and White eyedropper icon, it opens the respective color picker target dialog box. I can see activity in the ScriptingListenerJS.log file but cannot seem to execute it through scripting. This is the code that the ScriptingListenerJS.log displays. Can anyone throw any light on this please. // ======================================================= var idslct = charIDToTypeID( "slct" ); var desc43 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref18 = new ActionReference(); var ideyedropperTool = stringIDToTypeID( "eyedropperTool" ); ref18.putClass( ideyedropperTool ); desc43.putReference( idnull, ref18 ); var iddontRecord = stringIDToTypeID( "dontRecord" ); desc43.putBoolean( iddontRecord, true ); var idforceNotify = stringIDToTypeID( "forceNotify" ); desc43.putBoolean( idforceNotify, true ); executeAction( idslct, desc43, DialogModes.NO ); // ======================================================= var idmodalStateChanged = stringIDToTypeID( "modalStateChanged" ); var desc44 = new ActionDescriptor(); var idLvl = charIDToTypeID( "Lvl " ); desc44.putInteger( idLvl, 1 ); var idStte = charIDToTypeID( "Stte" ); var idStte = charIDToTypeID( "Stte" ); var identer = stringIDToTypeID( "enter" ); desc44.putEnumerated( idStte, idStte, identer ); var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" ); desc44.putBoolean( idkcanDispatchWhileModal, true ); var idTtl = charIDToTypeID( "Ttl " ); desc44.putString( idTtl, """Color Picker""" ); executeAction( idmodalStateChanged, desc44, DialogModes.NO );
... View more
‎Jan 01, 2019
04:33 AM
I am using 20.0.1 and the bug is still present on my version but hiding the rulers appears to have fixed it. Out of interest, are you still seeing the issue with 20.0.1
... View more
‎Jan 01, 2019
04:25 AM
Hiding the Rulers has helped. Any idea why this is ?
... View more
‎Jan 01, 2019
03:46 AM
When I am retouching using the brush (dodging and burning) the brush curser keeps changing as though its trying to catch up with my brush strokes and is slowing down the workflow. Is anyone else experiencing this.? MAC OSX 10.14.2 Photoshop CC2019
... View more
‎Nov 17, 2018
11:49 AM
Thank You, I have to admit I was not not aware of stop
... View more
‎Nov 17, 2018
06:19 AM
Under a button click even, I use the app.showColorPicker(); to show the ColorPicker which fills a layer with the chosen colour. Is there a way to stop the rest of the script running if the user presses the cancel button in the colorpicker dialog.
... View more
‎Nov 05, 2018
10:02 AM
Thank you, that has help me
... View more
‎Nov 05, 2018
09:10 AM
I am trying to stop the script from running if No Documents are open. I have a variable at the beginning of the script which reads... var docRef = app.activeDocument but it's throwing an error in ESTK if no document is open so I am trying to figure out a way to prevent the script from running if no document is open when the script is started. I tried the following thinking that if the document length was greater then 0 then it would set the variable otherwise it would exit but this is wrong somewhere. if(app.documents.length > 0){ var docRef = app.activeDocument }else{ return; }
... View more
‎Nov 03, 2018
05:53 AM
Thank You, I shall study this to see how you accomplished it Ian
... View more
‎Nov 03, 2018
05:01 AM
I am trying to add a dropdown list whereby the user can change the units to either INCHES or CM listStrings = ["INCHES", "CM"]; myDlg = new Window('dialog', 'Drop-down List'); myDlg.orientation = 'column'; myDlg.alignment = 'right'; //add drop-down myDlg.DDgroup = myDlg.add('group'); myDlg.DDgroup.orientation = 'row'; myDlg.DDgroup.add('statictext', undefined, "Unit Measurements"); myDlg.DDgroup.DD = myDlg.DDgroup.add('dropdownlist', undefined, undefined, {items:listStrings}) myDlg.DDgroup.DD.selection = 4; myDlg.closeBtn = myDlg.add('button', undefined, 'OK'); result = myDlg.show(); app.preferences.rulerUnits = Units.myDlg.DDgroup.DD.selection // add button functions myDlg.closeBtn.onClick = function() { this.parent.close(); } it works to some degree but Photoshop seems to hang and become unresponsive after pressing the button. Ideally I would prefer the units to change from the dropdown list selection rather than having to press the button. Any advice please
... View more
‎Oct 29, 2018
03:01 AM
Thank You
... View more
‎Oct 28, 2018
08:36 AM
I have a group where I want the controls aligned to the right. In the same group, I have some StaticText Question: Is it possible to override the right aligment for the group and have the staticText aligned to the left ? var g1 = w.add ("group", undefined); { g1.alignment = "right"; g1.add("statictext", undefined, "some text here");
... View more
‎Oct 25, 2018
02:41 AM
Thank You. I never thought about the on click event, my mind was thinking on a change event for some reason.
... View more
‎Oct 25, 2018
02:33 AM
I am trying to understand how Radio Buttons Work. For example. How do I show an alert box when one of the radio Buttons are selected. var w = new Window ("dialog"); w.alignChildren = "left"; var radio1 = w.add ("radiobutton", undefined, "Option A"); radio1.value = true; var radio2 = w.add ("radiobutton", undefined, "Option B"); w.show();
... View more
‎Oct 25, 2018
12:38 AM
1 Upvote
I found by accident that if you add & in front of text, &Cancel or &OK then you get the Non round buttons. Not sure if adding & is going to affect anything else.
... View more
‎Oct 24, 2018
09:54 AM
From what I can gather having read another Post, the round corner buttons may or may not be a Bug. w.add ("button", undefined, "OK"); w.add ("button", undefined, "Cancel"); It appears that using the OK and Cancel is making the buttons rounded in CC2019 anyway. Does anyone know of a work around to make these Non rounded without changing the OK and Cancel text property.
... View more
‎Oct 23, 2018
12:12 PM
In ESTK, can anyone show me how to open a webpage from a button click. I have read about saving a blank html file with a. redirect in in it but that seems a little clumsy.
... View more
‎Oct 23, 2018
12:50 AM
Thank You, fully appreciated
... View more
‎Oct 22, 2018
06:57 AM
On my Form I have 4 buttons on a Row. The only way I can get them to show as below is to space them by using some statictext add("statictext", undefined, "").preferredSize.width = 320; Is this the normal way of doing something like this ? with (myForm.add("group")) { orientation = "row"; alignment = "right"; margins = 0; spacing = 10; var button3 = add("button", undefined, "About"); var button4 = add("button", undefined, "Help"); button4.enabled=false; add("statictext", undefined, "").preferredSize.width = 320; var button1 = add("button", undefined, "OK"); var button2 = add("button", undefined, "Cancel"); }
... View more