Skip to main content
Participating Frequently
August 16, 2013
Question

How to select an action via script?

  • August 16, 2013
  • 2 replies
  • 4862 views

Hi,

I'd like to select an action in the Photoshop using script.

An example will be as follows, selecting "Aged Photo".

How could I do so?

Your help is very much appreciated.

This topic has been closed for replies.

2 replies

ericpohAuthor
Participating Frequently
August 20, 2013

Hi,

Is there any solution for my question?

I just need to highlight or select the particular action using script.

I do not need to playback.

I really wish there is a solution. Your help is very much appreciated.

Chuck Uebele
Community Expert
Community Expert
August 20, 2013

It sounds like it can't be done.  If I'm understanding this correctly, you would need to break down your action into smaller actions that you can then use SL to record.  Frankly, if you have to do that, you might as well record your whole action as a script.  That way you have total control over it and you don't have to worry about having both the script and action loaded on the computer, which could cause a break in your script.

ericpohAuthor
Participating Frequently
August 21, 2013

Thanks for trying to help, csuebele.

However, my main objective is just to show the highlighting/selection of Action on the Photoshop based on the selection done by the user on the device (via ConnectionSDK and script).

As for playback, I can use the script logged provided by the ScriptListener. So, I don't think I need to break anything into smaller actions or anything along that way.

Have a nice day.

Chuck Uebele
Community Expert
Community Expert
August 16, 2013

By using the SctiptListener plugin, you can run your action and it will generate the code to run the action.  You can then keep this code and just edit the name of the action if you want to use it for different actions.

ericpohAuthor
Participating Frequently
August 16, 2013

I've actually tried that before posting this question.

The ScriptListener plugin outputs most of the command.

Unfortunately, it doesn't output anything for selection done on Action.

Chuck Uebele
Community Expert
Community Expert
August 16, 2013

So are you saying that if there is a step in the action that creates a selection the script does not recognize it bypasses it?  Or do you mean if you have a selection before you run the script it does not recognize and use that selection?