Search found 16 matches
- Wed Feb 13, 2019 9:21 am
- Forum: Photoshop Scripting - General Discussion
- Topic: [ANN] Professional Photoshop Scripting course
- Replies: 0
- Views: 8212
[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...
- Wed Nov 08, 2017 9:50 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: Add Scripts in Filter Menu
- Replies: 8
- Views: 21316
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...
- Thu Oct 20, 2016 9:31 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: [ANN] PS Scripting course
- Replies: 0
- Views: 5588
[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...
- Tue Sep 27, 2016 8:42 pm
- Forum: Help Me
- Topic: Edit/Rename SmartObject File Reference (Embedded PSB File)
- Replies: 3
- Views: 10092
Re: Edit/Rename SmartObject File Reference (Embedded PSB File)
Wouldn't this suffice?
Davide
Code: Select all
var d = new ActionDescriptor();
d.putPath( stringIDToTypeID( "target" ), new File( "/Users/davidebarranca/Desktop/Elena.jpg" ) );
executeAction( stringIDToTypeID( "placedLayerReplaceContents" ), d, DialogModes.NO );
- Mon Sep 26, 2016 9:48 pm
- Forum: Help Me
- Topic: Edit/Rename SmartObject File Reference (Embedded PSB File)
- Replies: 3
- Views: 10092
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...
- Sun Sep 25, 2016 4:29 pm
- Forum: Help Me
- Topic: Using variables across different scripts
- Replies: 13
- Views: 25282
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...
- Fri Sep 23, 2016 12:26 pm
- Forum: Help Me
- Topic: Using variables across different scripts
- Replies: 13
- Views: 25282
Re: Using variables across different scripts
I would substitute:
with the simpler:
Regards,
Davide
Code: Select all
eval(eval("'#include' + File('/path/to/StoryCaveCore.jsx')"))
Code: Select all
$.evalFile("/path/to/StoryCaveCore.jsx");
Davide
- Tue Sep 20, 2016 8:17 pm
- Forum: Help Me
- Topic: Save Current File As with addition to filename
- Replies: 8
- Views: 15593
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
Davide
We're... vintage

Davide
- Mon Sep 19, 2016 9:59 pm
- Forum: Help Me
- Topic: Save Current File As with addition to filename
- Replies: 8
- Views: 15593
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

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