Skip to main content
Known Participant
September 21, 2012
Question

Running an action from an *.atn file

  • September 21, 2012
  • 1 reply
  • 3940 views

I am looking to load an action set dynamically and relative(pathwise) to the current document, execute an action from within, then remove the action set from a script.  I know that I can't play that action while the script is running so I was wondering if anyone knew how to read the *.atn file and exectue from the file without loading it? Any help would be appreciated. Thanks in advance.

This topic has been closed for replies.

1 reply

Inspiring
September 21, 2012

What version of Photoshop are you using? With newer versions you are able to load then call app.doAction to play the loaded action while the script is running. That is as long as the script knows what the action name and set name to use.

Creating a relative path shouldn't be a problem if the document was opened from a file or has been saved. It's possible to have a document without a file path.

ClevadioAuthor
Known Participant
September 21, 2012

first of all, thanks for responding. I am running cs6. I know that i can call an action from within a script with the action set loaded. but can i run an action from the *.atn file without having to load it into photoshop?

Inspiring
September 21, 2012

There is no way I know for a script to read then execute an action from an atn file. Xbytor has a script that will convert an atn file into javascript. You may be able to modify that script.