Search found 26 matches

by pixxxelschubser
Sun Nov 27, 2016 5:53 pm
Forum: Photoshop Scripting Bug Repository
Topic: RegExp | (OR) gives undefined in CS 5.1
Replies: 6
Views: 37656

Re: RegExp | (OR) gives undefined in CS 5.1

Hmmh? I don't know if I understood you right. And I don't understand the reasons for that what you want. And furthermore I think your Regex is much to complicated (and not really correct). Sorry for my bad english. But perhaps this helps a little: var variableForRegex = "DSC3.putDouble(sTT('war...
by pixxxelschubser
Sun Nov 13, 2016 8:33 pm
Forum: Help Me
Topic: How to resize selection??
Replies: 10
Views: 14058

Re: How to resize selection??

wasfiwasfi wrote:am not an expert but am pretty sure the easiest way is to get the "Boundary" (Bound) of the current selection , delete it and then create a new selection after doing the required modifications/resizing !
Yes.
I'm totally agree with you.
by pixxxelschubser
Thu Sep 01, 2016 5:10 pm
Forum: Help Me
Topic: Read Layer's Color Label
Replies: 2
Views: 4327

Re: Read Layer's Color Label

Hi, you can try this one: var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") ); var desc = executeActionGet(ref); alert ( typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID('color')) )); Ha...
by pixxxelschubser
Wed Aug 17, 2016 1:03 pm
Forum: Help Me
Topic: Folder Below
Replies: 2
Views: 3688

Re: Folder Below

How about:

Code: Select all

var fol = new Folder("/c/pictures/shootings/Hans/PSD/");
alert (fol.parent);
;)
by pixxxelschubser
Tue Aug 02, 2016 9:50 am
Forum: Photoshop Scripting Bug Repository
Topic: RegExp search bug
Replies: 3
Views: 12059

Re: RegExp search bug

You are totally right. I mix reluctant different types of variables. But it seems to be a bug in ESTK 1, and 2 and till version 3.6.02 (I haven't a CS6 for testing) With ESTK (CC) 4.0.0.1 Extend Script 4.5.5 the result is ok now. var arr = ['a.jpg', 'b.jpg']; var reg = /\.jpg$/i; for(var i = 0; i < ...
by pixxxelschubser
Mon Aug 01, 2016 9:02 pm
Forum: Photoshop Scripting Bug Repository
Topic: RegExp search bug
Replies: 3
Views: 12059

Re: RegExp search bug

Please try:

Code: Select all

var arr = ['a.jpg', 'b.jpg'];
var reg = /\.jpg$/i;
for(var i = 0; i < arr.length; i++) {
alert(arr[i].search(reg) != -1)
}