Skip to main content
Participant
March 4, 2022
Open for Voting

Remember Export Location

  • March 4, 2022
  • 19 replies
  • 2542 views

It would be wildly useful if when doing an export (to .jpg, etc, not the quick export to PNG) that it would remember where you last save an export from that project. If it hasn't been exported previously, for it to default to where the .psd file (or source file) is located.

 

This should be saved within the .psd file, since it requires you to save after doing the export. The quick export to PNG goes to the same location as the source file and that is great.

 

An alternate option would be have a button on the export screen to go to source location.

19 replies

Known Participant
March 7, 2022

Many thanks for doing this. However, I've just set it all up, but it only half-works - sorry if I'm misunderstanding. But I've installed the script, and it does appear in the menu above the Export Layers to Files script. Running the new script with the shift key held down does indeed bring up a save dialog to specify a folder, and that duly done, the script alert pops up instructing me to run the script again without the shift key. But when I do that, the regular Export Layers to Files dialog pops up asking me to choose a destination folder - which is my default User folder again. It won't let me export without me choosing a folder here! Shouldn't this step just be ignored by the script and the export be run?

 

I'll be away for the next two days, so no panic on a reply

Stephen Marsh
Community Expert
Community Expert
March 7, 2022

I have edited the script. It is not exactly the last save location, it is the last location explicitly set...

 

To set the save path to be remembered, hold down the SHIFT key when running the script. Run the script a second time without the shift key depressed to use the saved location. If the save location is not explicitly set, the default location will be the active document path (as per the standard script). Unsaved source files will default to a blank save location (as per the standard script).

 

https://github.com/MarshySwamp/Export-Layers-To-Files-Last-Location/blob/main/Export%20Layers%20To%20Files%20-%20Last%20Location.jsx

 

Quickstart:

 

  1. Copy the code text to the clipboard
  2. Open a new blank file in a plain-text editor (not word-processor)
  3. Paste the code in
  4. Save the text file as Export Layers To Files - Last Location.txt
  5. Rename the file extension from .txt to .jsx

 

To install the script:

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html#Photoshop

 

The installed script will appear in the File > Export menu above the default script

Stephen Marsh
Community Expert
Community Expert
March 7, 2022
quote

That setting in Preferences has no effect for me. Every time I select 'Export Layers to Files', the dialog defaults to my Windows/User folder, even if I specified a folder with the previous export action. I have it exactly as shown in the example?

 

@Phil Wolstenholme23 

 

That preference setting is only for Quick Export and Export As, which is not the same thing as Export Layers to Files, which is a script. The script would require editing.

Known Participant
March 7, 2022

That setting in Preferences has no effect for me. Every time I select 'Export Layers to Files', the dialog defaults to my Windows/User folder, even if I specified a folder with the previous export action. I have it exactly as shown in the example?

Participant
March 5, 2022

Interestingly enough, changing that setting messed up the Quick Export to PNG. That used to always go to the document location, but now it doesn't.

Participant
March 5, 2022

Thanks for pointing out that setting in Preferences, I guess I should have looked there, but that solves one issue, but not the second. 99% of the time I do want it going to the location where the document is at, but if I export to a different location, I would prefer it save that with the document and do that. The last location setting does it to the last place a document was saved, not the last place where the current document was saved. In a perfect world, there would be an order to which it does it. First to where the current document was last saved, for the format being exported, if it hasn't been exported previously, it defaults to the location of the current document and lastly if you are exporting a document that you haven't saved, it will default to the last place any document was stored.

But, this setting does improve the situation quite a bit. Thanks again.

Known Participant
March 5, 2022

Oh god, sorry, I'd never noticed that! Thank you! 🙂

Stephen Marsh
Community Expert
Community Expert
March 5, 2022

Like this?

 

Known Participant
March 4, 2022

I'll second that - I regularly use 'Export layers to Files', and every time have to reset the destination folder to the source folder, or my designated folder. All other Save dialogs stay in the same location when recalled.