Skip to main content
Inspiring
December 9, 2010
Question

Actions Vs Scripts

  • December 9, 2010
  • 2 replies
  • 1913 views

Has anyone tried out to see if scripting is faster than actions. - Yes I'm aware that all depends on how the script is written,  but I was just wondering in having to get several hundred images processed would a script be faster than an action (to do the same job)  Or are they doing exactly the same thing. Is there anything going on under the hood that I don't know about that would cause one to process faster than the other?

This topic has been closed for replies.

2 replies

Muppet_Mark-QAl63s
Inspiring
December 10, 2010

Is there anything going on under the hood that I don't know about that would cause one to process faster than the other?

Well there is your action's playback options but I guess you already know about those.

Inspiring
December 10, 2010

Muppet Mark wrote:

Well there is your action's playback options but I guess you already know about those.

It's my understanding that the playback options affect both actions and scripts. Yes setting the playback option to accelerated will speed things up but does so for both. So it doesn't give an advantage to one over the other. Or I guess I should say it gives the same advantage to both.

Muppet_Mark-QAl63s
Inspiring
December 10, 2010

It's my understanding that the playback options affect both actions and scripts. Yes setting the playback option to accelerated will speed things up but does so for both. So it doesn't give an advantage to one over the other. Or I guess I should say it gives the same advantage to both.

Now I was thinking that this may slow down your action but Script would be unaffected (I've not so much as tested this as you can probably tell). I can't recall seeing any changing of playback options with script to make sure accelerated is utilised… did I miss something? (Just been and checked the manual n yes I did) Doh!… still a dammed muppet… never learn…

Tom Ruark
Inspiring
December 9, 2010

Scripting is a layer on top of actions. I don't see how scripting could be faster. Scripting gets you logic that actions cannot do.

c.pfaffenbichler
Community Expert
Community Expert
December 10, 2010
Scripting is a layer on top of actions. I don't see how scripting could be faster.

I’m not sure this is the case, but does hiding the Panels not improve the performance of some Actions/Scripts?

(Because the various Panels’ previews don’t get updated, I suspect.)

And that’s one thing that’s not in itself Action-able (as far as I know) – of course one could just hide the Panels before running the Batch, but with a Script that could be part of the operation.

Inspiring
December 10, 2010

I think Tom is right. The best one could hope for is that a script would be as fast as an action becasue of the added layer. I have not done any testing but we know that some tasks such as working with a document that has lots of layers is much slower using the DOM than actions.

I would say use actions where you can and scripts where you need the logic