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!

Reply to thread

Here is another version.

[CODE]

#target photoshop;

if(documents.length){

//AMEND THE LINE BELOW WITH YOUR ACTIONSET NAME

var actionsetName =   "Your Action Set Name";

var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');

try{

var action = "Create" + Name.match(/[^\/|^-]+$/);

app.doAction (action, actionsetName);

}catch(e){alert(e + "\n" + e.line);}

    }

[/CODE]


Make sure you change the actionsetName to what your actions are saved  in!

Once the script has been saved you can then create an action to run it using "Insert Menu Iten" from the action palette fly out menu, then Files - Scripts - select the script.


You can now use this via Image Processor / manually call it or even set up Files - Scripts - Scripts Event Manager to call the action with the Photoshop Event set to "Open Document" It will then run automatically when you open a document.


What is our favorite program/app? (Hint - it begins and ends with the letter P)
Back
Top