Photoshop: Possibility to edit file path of the action

  • 2
  • Idea
  • Updated 4 years ago
  • (Edited)
Sometimes it would be helpful to just edit the path within the Actions steps, rather than remove step of the action and re-record it. So much easier we could re-use the action on another folders.
Photo of Zeeto VGS

Zeeto VGS

  • 29 Posts
  • 1 Reply Like

Posted 8 years ago

  • 2
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 838 Reply Likes
Official Response
That's what the Batch command is for.
Photo of Zeeto VGS

Zeeto VGS

  • 29 Posts
  • 1 Reply Like
Batch command won't resolve the problem when the action is dedicated to create several variations of the image and contains the Save commands.

And what I meant in my first post is to edit the paths in "Save" commands within the Action itself.
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 838 Reply Likes
In that case there is no good solution other than prompting for the path on each save, or using scripts.
Photo of Charlesoo

Charlesoo

  • 3 Posts
  • 0 Reply Likes
Chris this would be hugely useful. I have a whole batch of actions recorded to generate Icon sets at different sizes from one master file.

However I recently had to replace my desktop and the drive the actions refer to in the Export command no longer exists. I have to change a single drive letter but in ~40 actions which will take hours of re-recording

I even tried loading the action file into a binary editor. I can see the paths but even carefully changing just one letter and re-saving corrupts it.

Whilst Batch gives me the ability to apply actions to a lot of files this is different. I have several common icon elements stacked in a single master file and I need to activate the right layers before running each action set; also if I use Batch to override the name then all my different size names get lost.
Photo of Paul Riggott

Paul Riggott

  • 360 Posts
  • 144 Reply Likes
You can edit your actions using a couple of scripts...
1 Save your action to an atn file.
2 Use Xbytor's ActionFileToXML.jsx to convert the atn file to xml
3 Edit the paths in the xml to the new paths you would like
4 Use ActionFileFromXML.jsx to convert the edited xml back into an atn file
5. Load the atn in Photoshop

These scripts are part of Xbytor's XTOOLS
XTOOLS can be downloaded here...
http://sourceforge.net/projects/ps-sc...

Also check this page for further details...
http://ps-scripts.sourceforge.net/xto...
Photo of Charlesoo

Charlesoo

  • 3 Posts
  • 0 Reply Likes
Thank you Paul, I'd run into XTOOLS but it wasn't clear if they would help.

Much appreciated.
Photo of Charlesoo

Charlesoo

  • 3 Posts
  • 0 Reply Likes
Annoyingly that almost but not quite works.

The original drive was mapped to U: and I need to move it to V: (Windows 7)

So the path in the action is "U:/"

The XML version maps the path to UNIX form so "/u/" so a quick notepad++ edit gets that the "/v/"

But when I convert back to an atn file and load it mysteriously the path has become "D:\v\". I'm not clear what is adding that drive letter, nor why it picked my second drive.

Probably one to take up with xtools folks but just in case you've seen it before...
Photo of Paul Riggott

Paul Riggott

  • 360 Posts
  • 144 Reply Likes
Sorry I don't know the answer, maybe you could post the question to Xbytor ...
http://www.ps-scripts.com/bb/viewforu...
Photo of Vinay Mote

Vinay Mote

  • 1 Post
  • 0 Reply Likes
I am able to replace folder names with this utility - http://www.blinkenbyte.org/modifyatn/...

it may be helpful to you as well....

Cheers,
Vinay Mote