Skip to main content
Inspiring
August 9, 2010
Question

Any way to edit actions in a text/script editor?

  • August 9, 2010
  • 5 replies
  • 95754 views

I need to duplicate a very long action about 5 times and make file-name saving changes to each step, but going through the resaving process 75 times is a pain in the ass.  It's a simple action that shows, saves, and hides 75 different layers individually.  But the naming of these saved files will be different depeing on the photoshop file I'm using (about 5 different variances).  Batch Processing just takes too long to do what my action will do in 10 seconds, so it seems like I'm stuck with using actions.  My question is:

Is there a way to edit actions through a text/script editor vs using Photoshop?  I could copy/paste/replace text much quicker than going through the actual saving process 375 times.

This topic has been closed for replies.

5 replies

Stephen Marsh
Community Expert
Community Expert
January 29, 2019

A late reply for the OP:

Modifying Adobe Photoshop Action (*.atn) Files  (I personally have not tested this unknown Java app, execute at your own risk)

Participant
August 28, 2015

Try this utility which helped me to change folder names in 2 min....

below utility from blinkenbyte.org

Modifying Adobe Photoshop Action (*.atn) Files

Participant
January 7, 2014

i need to do the same thing!! did anyone figure out an easy way to do this?

Inspiring
August 9, 2010

This will convert an action file to XML:

http://ps-scripts.cvs.sourceforge.net/viewvc/ps-scripts/xtools/apps/ActionFileToXML.jsx

You can edit this file with a normal text editor.

This will convert an XML file to an action file:

http://ps-scripts.cvs.sourceforge.net/viewvc/ps-scripts/xtools/apps/ActionFileFromXML.jsx

There are a few cases where this does not work. But they are not very common.

Participating Frequently
March 21, 2013

This was an incredibly helpful toolset- thank you!

Participating Frequently
August 9, 2010

Ctrl + Alt (Cmd + Opt on Mac) while click on Save Actions from the Actions panel flyout will give you a txt file. The problem is that I do not know about a way to re-convert this into an atn.

Inspiring
August 9, 2010

I tried the command+opt solution first, which spit out a text file containing every every action (rather than the set I had selected) and that was fine.  I made the changes, but when I tried loading that text file back into Photoshop's Actions pallet, it was unrecognizable as an action.  Just to confirm that it wasn't any faulty scripting, I saved out another copy of my actions and immediately tried to reload them back with that text file (I made no modifications) and again, the text file was unrecognizable.  How do I load the text version back into the Actions Pallet?  I've tried the Load command from the Pallet and also tried dragging the file directly into Photoshop.  No dice.

Xbytor, I visited your 2 links, but don't understand how I implement my action file into that system.  Is it something I download?  When I visited the links, they were just browser pages filled with what looks like script.

JJMack
Community Expert
Community Expert
August 10, 2010

bsnyder175 wrote:

Xbytor, I visited your 2 links, but don't understand how I implement my action file into that system.  Is it something I download?  When I visited the links, they were just browser pages filled with what looks like script.

Try a right click on the links to Xbytor and choose save link as and save his two scripts into your \Photoshop version\Presets\Scripts. The next time you start Photoshop you will have two nes scripts in meny File>Scripts... . You can edit a XML file with a text editor like wordpad.

Also the Action Palette is a full fledge Action editor.  It should be quite easy to edit you action highlight the sections you want to dupe five times and replicate that section five times then rerecord(edit) the duped "saved as" steps. You may want to look at my crafting action package.

http://www.mouseprints.net/old/dpr/JJMacksCraftingActions.zip

Contains:

Action Actions Palette Tips.txt

Action Creation Guidelines.txt

Action Dealing with Image Size.txt

Action Enhanced via Scripted Photoshop Functions.txt

CraftedActions.atn Sample Action set includes an example Watermarking action

Sample Actions.txt Photoshop CraftedActions set saved as a text file. This file has some additional comments I inserted describing how the actions work.

12 Scripts for actions

JJMack