Search found 29 matches

by JavierAroche
Tue Dec 13, 2016 8:03 am
Forum: Help Me
Topic: Code or clever workaround for fail safe toggling of palettes into view?
Replies: 4
Views: 6218

Re: Code or clever workaround for fail safe toggling of palettes into view?

Hmm that's weird. Both of these commands close the layer comps panel for me. I'm using Photoshop CC 2015.0 on MacOS app.runMenuItem(stringIDToTypeID("closeLayerCompsPanel")); var desc = new ActionDescriptor(); var ref = new ActionReference(); ref.putEnumerated(charIDToTypeID('Mn '), charID...
by JavierAroche
Tue Dec 13, 2016 7:52 am
Forum: Help Me
Topic: Focusing Dropdown List?
Replies: 3
Views: 5084

Re: Focusing Dropdown List?

I don't think there is a way to open the dropdown by default. If you're looking to display all the names to the user, you could replace the dropdown menu with a list, like this: var win = new Window('dialog', 'Send Layer to Group'); win.list = win.add('listbox'); win.list.active = true; for(var i = ...
by JavierAroche
Tue Dec 06, 2016 8:46 am
Forum: Help Me
Topic: comparing strings / generic 'continue action' / skip opening to ACR
Replies: 2
Views: 4139

Re: comparing strings / generic 'continue action' / skip opening to ACR

1) So what I've spent way too much time on is figuring out how to compare strings... You have a capital I in "If", it should be "if". var doc = app.activeDocument; var docName = doc.name; // (a.o.) this is not working...: if (docName == "specific.tif" ) { // continue a...
by JavierAroche
Wed Nov 30, 2016 11:30 pm
Forum: Help Me
Topic: Focusing Dropdown List?
Replies: 3
Views: 5084

Re: Focusing Dropdown List?

You need to set the dropdown element to be active. You can do that with this little line (line #96).

Code: Select all

win.dropdown.active = true;
by JavierAroche
Wed Nov 16, 2016 10:13 pm
Forum: Photoshop Scripts
Topic: Brackets to Photoshop (Brackets Extension)
Replies: 3
Views: 10538

Re: Brackets to Photoshop (Brackets Extension)

Hey guys, I just updated my brackets-to-photoshop extension. https://github.com/JavierAroche/brackets-to-photoshop I included a good amount of features, I hope you find them useful when scripting for Adobe applications. The idea is to completely replace the ExtendScript Toolkit app, which is really ...
by JavierAroche
Sat Nov 05, 2016 7:06 am
Forum: Help Me
Topic: place image inside a specific Layerset
Replies: 3
Views: 4782

Re: place image inside a specific Layerset

This should do it. You have to select the parent folder that contains the folders you want to process since you can't select multiple folders (as far as I know). I added comments so it's easier to understand. // Import folders with images into Photoshop // Javier Aroche // Get parent folder that con...
by JavierAroche
Mon Oct 31, 2016 7:58 am
Forum: Help Me
Topic: How to Get a list of Printer Color Profiles
Replies: 1
Views: 3406

Re: How to Get a list of Printer Color Profiles

I don't see a list of the print color profiles exposed in the document model (maybe it's under application?). I was only able to get the current active profile :( NOTE: Only works if "Color Handling" is set to "Photoshop Manages Colors" in the print settings. Otherwise the printe...
by JavierAroche
Mon Oct 31, 2016 5:50 am
Forum: Help Me
Topic: Check if given layer/channel has any color in it
Replies: 1
Views: 3439

Re: Check if given layer/channel has any color in it

That's a good idea to try to get the selection of the layer to see if it has any pixels. There is an Action Descriptor for it, but I'm not sure if it returns an error when executing it on an empty layer. I have a different solution. You can validate the width and height of the selected layer (assumi...
by JavierAroche
Sat Oct 29, 2016 7:44 am
Forum: Help Me
Topic: Copy from Clipboard and paste
Replies: 2
Views: 4586

Re: Copy from Clipboard and paste

Hey Peter, it would help if you could post your code so we can understand what you're trying to achieve. It sounds like you need to make that date string into a variable that will reflect the current date. If that's the case, then you don't need to copy anything from your clipboard. The function new...
by JavierAroche
Fri Oct 28, 2016 5:16 am
Forum: Help Me
Topic: setInterval
Replies: 1
Views: 2994

Re: setInterval

Other than sleep (which is really not ideal), I don't think you can set a timeout in a pure JSX context. If you're in the context of an HTML panel or Generator, then you have way more flexibility to do something like this.