What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Scripting issues.. (how to create an adjustment layer etc..)


mariuszn3

New Member
Messages
1
Likes
0
Hi I just started to make use of scripting for Photoshop.. and I have few.. issues I can't get through..
1. How can I create an adjustment layer (like curves.. etc)?
the following code doesn't do the job:

var artLayerRef = app.activeDocument.artLayers.add();
artLayerRef.kind = LayerKind.CURVES;

it says that I can only change to normal or text layer.. how then I can right away create CURVES layer?? Is that possible?

2. Can I make use of "Save for Web" option from File menu (it is possible with Actions)? I noticed only the option to use standard save as jpg... which is not so good in some cases..

3. .. can I use scripts to run photoshop actions.. (in case of some disabilities of scripting which actions can go through.. hope there's none.. ?
Sorry if my issues are simply silly but I'm completely newbie to PS scripting.. and quite fresh to scripting at all.. I've just spend few hours trying to create simple solid color layer using script.. with no success :( Thanks for help..
 

Back
Top