Search found 16 matches

by DavideBarranca
Wed Feb 13, 2019 9:21 am
Forum: Photoshop Scripting - General Discussion
Topic: [ANN] Professional Photoshop Scripting course
Replies: 0
Views: 737

[ANN] Professional Photoshop Scripting course

Hi, I'd like to inform the community that I have (finally) released version 1.0 of my course Professional Photoshop Scripting ! https://www.ps-scripting.com/social/twitter.jpg And I say finally because it took 2.5 years ;) A +400 pages PDF that goes from basic concepts and language features up to ad...
by DavideBarranca
Wed Nov 08, 2017 9:50 pm
Forum: Photoshop Scripting - General Discussion
Topic: Add Scripts in Filter Menu
Replies: 8
Views: 7020

Re: Add Scripts in Filter Menu

Hi, I did Parametric Curves and Fixel Contrastica – no plugins involved there, just look at the <javascriptresource> tag, e.g. <javascriptresource> <name>Parametric Curves 1.1</name> <menu>filter</menu> <category>cs-extensions</category> <about>Use it to build mathematically defined (Javascript) Cur...
by DavideBarranca
Thu Oct 20, 2016 9:31 pm
Forum: Photoshop Scripting - General Discussion
Topic: [ANN] PS Scripting course
Replies: 0
Views: 2366

[ANN] PS Scripting course

Hello, I'd like to let you know that, after the Photoshop HTML Panels Development course , I've started working on a new, similar project (book+code+videos), this time entirely dedicated to Photoshop Scripting. The announce page, with details, is here – if you have questions, please add a comment on...
by DavideBarranca
Tue Sep 27, 2016 8:42 pm
Forum: Help Me
Topic: Edit/Rename SmartObject File Reference (Embedded PSB File)
Replies: 3
Views: 3074

Re: Edit/Rename SmartObject File Reference (Embedded PSB File)

Wouldn't this suffice?

Code: Select all

var d = new ActionDescriptor();
d.putPath( stringIDToTypeID( "target" ), new File( "/Users/davidebarranca/Desktop/Elena.jpg" ) );
executeAction( stringIDToTypeID( "placedLayerReplaceContents" ), d, DialogModes.NO );
Davide
by DavideBarranca
Mon Sep 26, 2016 9:48 pm
Forum: Help Me
Topic: Edit/Rename SmartObject File Reference (Embedded PSB File)
Replies: 3
Views: 3074

Re: Edit/Rename SmartObject File Reference (Embedded PSB File)

Hi Antonio, this should theoretically work, but it doesn't. ARGH. function setSmartObjectLinkedPath(pathString) { var cTID = function(key) { return charIDToTypeID(key); } var sTID = function(key) { return stringIDToTypeID(key); } // Getting the Layer descriptor var ref = new ActionReference(); ref.p...
by DavideBarranca
Sun Sep 25, 2016 4:29 pm
Forum: Help Me
Topic: Using variables across different scripts
Replies: 13
Views: 7978

Re: Using variables across different scripts

Is there a universal default script folder path line I could use across both PCs and MACs ? like this one : .../Photoshop CC 2015/Presets/ Scripts That one is the only default script path I'm aware of. Which is version dependent, so I'm afraid you always need to perform some maintenance when new ve...
by DavideBarranca
Fri Sep 23, 2016 12:26 pm
Forum: Help Me
Topic: Using variables across different scripts
Replies: 13
Views: 7978

Re: Using variables across different scripts

I would substitute:

Code: Select all

eval(eval("'#include' + File('/path/to/StoryCaveCore.jsx')"))
with the simpler:

Code: Select all

$.evalFile("/path/to/StoryCaveCore.jsx");
Regards,

Davide
by DavideBarranca
Tue Sep 20, 2016 8:17 pm
Forum: Help Me
Topic: Save Current File As with addition to filename
Replies: 8
Views: 4202

Re: Save Current File As with addition to filename

Well, ES6 introduces "let" as a locally scoped "var", but remember that when it comes to ExtendScript we're stuck to EcmaScript version 3, i.e. pre-2009.
We're... vintage :P

Davide
by DavideBarranca
Mon Sep 19, 2016 9:59 pm
Forum: Help Me
Topic: Save Current File As with addition to filename
Replies: 8
Views: 4202

Re: Save Current File As with addition to filename

Actually I wouldn't suggest (especially to beginners) to skip "var" altogether, see here. Just my own point of view :-)
Cheers,

Davide
by DavideBarranca
Sun Sep 04, 2016 8:07 pm
Forum: Help Me
Topic: The slider can not be dragged and moved!
Replies: 2
Views: 2302

Re: The slider can not be dragged and moved!

This thread has got some replies in the Adobe's Forums here.

Davide