Search found 132 matches

by txuku
Sun Oct 29, 2017 9:03 am
Forum: Help Me
Topic: If Path named "" exists
Replies: 2
Views: 3687

Re: If Path named "" exists

Bonjour You can use the " try catch " method ! This by exemple var x=prompt("Enter a number between 0 and 10:",""); try { if(x>10) { throw "Err1"; } else if(x<0) { throw "Err2"; } else if(isNaN(x)) { throw "Err3"; } } catch(er) { if(er=="Err1") { alert("Error! The value is too high"); } if(er=="Err2...
by txuku
Sat Oct 28, 2017 9:33 am
Forum: Help Me
Topic: add part of filename
Replies: 6
Views: 5577

Re: add part of filename

Bonjour

Since I program I renounce accents and punctuation ............... :)
by txuku
Thu Oct 26, 2017 9:10 am
Forum: Photoshop Scripting - General Discussion
Topic: Is it possible to change Brush Mode via Scripting?
Replies: 1
Views: 4759

Re: Is it possible to change Brush Mode via Scripting?

Bonjour I have three scripts that may be suitable for you : SelectOutil.jsx //SelectOutil.jsx selectTool('moveTool'); selectTool('artBrushTool'); //magicStampTool //selectTool('marqueeRectTool'); //selectTool('marqueeEllipTool'); //selectTool('marqueeSingleRowTool'); //selectTool('marqueeSingleColum...
by txuku
Sun Oct 22, 2017 8:55 am
Forum: Photoshop Scripting - General Discussion
Topic: Get timeline frame number?
Replies: 4
Views: 5814

Re: Get timeline frame number?

Bonjour

Do you do this in javascript or do you use the ScriptlisteneJS.log?

Can you show the code used and the data you want?

:)
by txuku
Fri Oct 13, 2017 7:02 am
Forum: Photoshop Scripting - General Discussion
Topic: Performance of custom Zoom In script
Replies: 14
Views: 19548

Re: Performance of custom Zoom In script

Bonjour

Glad to see you pass xbytor ! :)
by txuku
Sat Oct 07, 2017 2:43 pm
Forum: Photoshop Scripting - General Discussion
Topic: Performance of custom Zoom In script
Replies: 14
Views: 19548

Re: Performance of custom Zoom In script

Ah bon ! :) You have the xbytor function setZoom( ) that should suit you : function setZoom( zoom ) {// as percent cTID = function(s) { return app.charIDToTypeID(s); }; // from xbytor var docRes = activeDocument.resolution; activeDocument.resizeImage( undefined, undefined, 72/(zoom/100), ResampleMet...
by txuku
Sat Oct 07, 2017 9:04 am
Forum: Photoshop Scripting - General Discussion
Topic: Performance of custom Zoom In script
Replies: 14
Views: 19548

Re: Performance of custom Zoom In script

Bonjour

Um..............

Ctrl+ and Ctrl- with Ctrl0
seem to me the fastest ! :)
by txuku
Fri Oct 06, 2017 8:09 am
Forum: Help Me
Topic: Script to Trim and Resize Images of Different Size
Replies: 1
Views: 3031

Re: Script to Trim and Resize Images of Different Size

Bonjour

What do you mean by "cropping the image of the color of the upper left pixel" ?


Why not "From the top left corner"?

:)
by txuku
Fri Sep 22, 2017 12:34 pm
Forum: Help Me
Topic: add part of filename
Replies: 6
Views: 5577

Re: add part of filename

:D