Skip to main content
Known Participant
September 29, 2019
Question

Create Action Set and name it like document

  • September 29, 2019
  • 3 replies
  • 932 views

Hey guys,

 

i am looking for a script which allows me following steps to do in photoshop.

 

I have a action set called TEMP with an action called also TEMP.

I want a script to create a new Action Set which is called like the document,

my TEMP action should be transfered to this set, and the name should also be changed to the documents name.

 

the last step ist to save this action set and delete it afterwards.

 

It would be great if anybody could help me.

 

as far i´ve found following script to copy my filename to the clipboard.

 

#target photoshop

var d = new ActionDescriptor();

d.putString(stringIDToTypeID("textData"), File.decode(arguments[0].getPath(stringIDToTypeID("in")).name));

executeAction(stringIDToTypeID("textToClipboard"), d, DialogModes.NO);

 

 

This topic has been closed for replies.

3 replies

Chuck Uebele
Community Expert
Community Expert
September 30, 2019

You're not really answering my questions. You can't write a script to create a new action set. So what I want to know is:

    1. Why do you need a separate action and action set for each file?

    2. Why can't you use just one action or script for what you want to do?

Known Participant
September 30, 2019
1. The action is for each file a different. Image a can't be transformed as image b. I need a action set for each file, to export my actions and save it with the file it belongs to.
Chuck Uebele
Community Expert
Community Expert
September 29, 2019

I understand that you're working with a bunch of files, but what in your workflow or action makes it that you have to have a separate action set for each file?

Known Participant
September 30, 2019
Yes. That‘s excactly what i am Looking for... i have also tried another Workflow and lost overview pretty fast...
Chuck Uebele
Community Expert
Community Expert
September 29, 2019

I'm a bit confused as to why you want to do this? What is it that you're trying to achieve with this work flow? A straight script might be better.

Known Participant
September 29, 2019

I am working with a lot of files. My TEMP action is an action to transform my layer and i have other actions where this TEMP action is a part of it. I dont want to change everytime all actions so, i just change the temp action for each file. In the end i want to export the action set and name it excactly like the file, so i dont lose overview.