Skip to main content
Known Participant
September 25, 2012
Question

Recording script actions in an action

  • September 25, 2012
  • 2 replies
  • 2657 views

Is it possible to record the steps that a script performs (e.g. creating a new layer, switching to a certain layer, applying a filter) in an action? When you activate the record button on the Action panel and run a script, only the script execution is recorded and not the things that the script does. Is there a way to pass the script steps to the Action panel so that it records it?

This topic has been closed for replies.

2 replies

Participant
February 7, 2013

Hi!

If you guys come to find some clues on how to do it, please share! Right now, I am trying to figure out how to record some user interaction with the panel for test automation purposes. I think from what I've read here so far that my problem can be solved by coding the action and generating the .atn file, but I'm not comfortable yet to say that I'm following an 100% the suggestions . Anyhow, to know how to let the user record its own action will surely be helpfull in the near future of our extension development.

Thanks for being active in the community. It's been really helpful so far!

c.pfaffenbichler
Community Expert
Community Expert
September 26, 2012

Is there a way to pass the script steps to the Action panel so that it records it?

I doubt it and don’t see a lot of sense in it, as that would strip conditional clauses etc.

Why do you ask anyway?

Known Participant
September 26, 2012

I am developing a flash panel that allows the users to do various tasks. It would be nice if the steps that are peformed by the panel would be recordable in an action.

As these steps show up in the History panel, I thought it may be possible for the Action panel to capture them.

If there is not way to pass these steps to the Action panel for recording, the only alternative is to make the panel record an action itself, save it as an .atn file and automatically place the .atn file in the Action panel. I had hoped there would be a much easier solution.

Inspiring
September 26, 2012

Right, the <javascriptresource> section allows to record parameters for a script, which are then stored in the action. This would be an option if I would develop a script. Not what I was looking for, but it would be doable.

As far as I can tell nothing a panel does is recorded, not even starting the flash panel itself. I thought maybe the executeAction() calls of the panel script could be passed to the action panel, so that it can record them. If it is not possible, it would be a nice feature for a future Photoshop version.

Any other idea?


The more I think about it I don't think  using a <javascriptresoures> section and setting the app.playbackParameters would work even with a scrpt. Unless the Action panel was in record mode. In other words even if you could pass something to the action it would not be recorded unless the action was in record mode.

I don't know of a way to start record mode from a script or force an action to record tasks that are not normally recordable.