Skip to main content
joshua_watkins
New Participant
March 6, 2024
Question

PSD action file save location issues - Please Help

  • March 6, 2024
  • 2 replies
  • 930 views

I created a psd action that will finalize my design file, save/export numerous file types (with unique naming for each file) within existing labeled folders/subfolders all in one shot.

 

I put together a folder structure which has the labeled folder/subfolders for the psd action to save/export the files to. I labeled this folder as "client". So before I run the psd action, I drag my premade "client" folder to my desktop. Once that "client" folder is on my desktop, I run the psd action I created and it runs flawlessly. Once the action is complete, the "client" folder on my desktop will be populated with the labeled file exports organized in the correct sub folders.

 

Here's the problem I'm running into ... I work with a team of graphic designers. I created this action to speed up our final files procedure. The action works great on my computer, but I will not be the only one running this psd action. I will have a multiple designers running this action on their own computers. When I run the action on someone else's computer it no longer works. And I know this is because when I run the action on my computer, photoshop knows to save everything to the "client" folder on my desktop. When it runs on someone else's computer, I'm assuming it's looking for the "client" folder specifically on my computer desktop and not the other computer. And when it can't find that specific location I'm sure it causes the action to fail?

 

Did some research, sounds like if you're creating a psd action to save/export files, it uses an absolute location. aka, the save/export action will only work on my computer. I read that I may be able to override the save location by converting my psd action to a script, manually editing the code within the script for the save location, then running that script in photoshop?

 

I'm a graphic designer with minimal code knowledge. It would be greatly appreciated if someone could point me in the right direction or help me figure this out. I would love to be able to run this psd action on multiple different computers without any issues. It doesn't matter to me where the "client" folder save location is, I just used my desktop when I created the psd action because I figured it was the most generic location.

 

Myself and my team are Mac based.

 

Thanks so much.

This topic has been closed for replies.

2 replies

Stephen Marsh
Community Expert
March 6, 2024
quote

I read that I may be able to override the save location by converting my psd action to a script, manually editing the code within the script for the save location, then running that script in photoshop?


By @joshua_watkins

 

Download the entire xtools repo to your computer as a .zip file, then decompress:

 

https://sourceforge.net/projects/ps-scripts/files/xtools/v2.3/

 

You can then use File > Scripts > Browse:

 

...xtools v2.3/apps/ActionFileToJavascript.jsx

 

or

 

...xtools v2.3/apps/ActionToJavascript.jsx

 

Then using a plain text editor, you can then perform a multiple find/replace to edit the JSX file from the original Desktop/client folder path to the active user account ~

 

"~/Desktop/client"

 

Stephen Marsh
Community Expert
March 7, 2024

I should also mention that this should be easier with UXP scripting, as Photoshop 23.5 > can convert the action to batchPlay code for use as a .psjs as a built-in feature (if developer mode is enabled in prefs). Then all you need to do is bulk update the paths in the code with a plain text editor.

Stephen Marsh
Community Expert
March 7, 2024

From what I know they concern computer permissions, you need tokens, I haven't tried with psjs, but it shouldn't make a difference. If you have time, give it a try, I can't at the moment, I'm at work.


quote

From what I know they concern computer permissions, you need tokens, I haven't tried with psjs, but it shouldn't make a difference. If you have time, give it a try, I can't at the moment, I'm at work.


By @Ciccillotto

 

Time to read up, I forgot about such "simple things" in ExtendScript being different in UXP:

 

https://developer.adobe.com/photoshop/uxp/2022/scripting/samples/#access-the-local-filesystem

 

https://forums.creativeclouddeveloper.com/t/i-want-to-export-a-file-in-png-format-do-you-have-a-sample-code/6487

D Fosse
Community Expert
March 6, 2024

If you include a Save step in an action it has to save somewhere. That's pretty self-evident.

 

But you can make it save back to whatever folder it came from, unspecified, if you make sure that the save path is not highlighted in the dialog when you record the action. If it is, the absolute path is recorded.

 

To un-highlight the path, it is usually enough to click away from the folder and back again.

 

Or you can drop the save step and just leave the file open, and people can save it wherever they want.

joshua_watkins
New Participant
March 6, 2024

I appreciate the feedback! I defintiely don't want to drop the save steps, eliminating the save steps is the main focus of the psd action. To put things into perspective, the action runs through 16 different exports/saves. So the action will save us a decent amount of time if everything is able to be saved/exported with the click of a button rather than saving to a specific location for each of the 16 files.

 

I guess I'm really just curious if there's a save location I can use for the action that will work on my computer along with any other computer that runs the action.  I can give your recommendation a shot "make sure that the save path is not highlighted in the dialog when you record the action" Thanks again for your response, it's greatly appreciated. I'll get back to you once I'm able to give this a try.

Inspiring
March 6, 2024

to do what you ask you need a specific script, with actions what you ask is not possible, because the path of the user who created the action is stored in the action.