Skip to main content
Inspiring
June 18, 2019
Answered

Change default destination when Exporting layer comps

  • June 18, 2019
  • 1 reply
  • 662 views

I use latest PS on win10

Can I change the default destination when using:

File>Export>Layer Comps To File

Whenever I use these the default destination is always:

C:\Users\UserName\Desktop

I'd like to specify another location for all those exports.

Thanks,

This topic has been closed for replies.
Correct answer karpiyon

The script does not look like its a Plug-in Script so you cans not record setting for it in your action.  The only option you have is to make that step interactive.  Check the box in front of the step to turn one the  scripts dialog. If you good at scripting you could write a script like that one the is a Photoshop Plug-in.  Then the folder you used recording the step will be passed to the plug-in when the action is played.


I copied the default action and modified it's code.

in my case this was the script:

"Layer Comps To Files.jsx"

I modified

...

exportInfo.destination = Folder(app.activeDocument.fullName.parent).fsName; // destination folder

to my folder, e.g:

exportInfo.destination = File("/C/Documents and Settings/" + $.getenv("USERNAME") + "").fsName;

1 reply

JJMack
Community Expert
Community Expert
June 18, 2019

There is actually no default destination folder the first time you used the script that field was empty  you either typed in a folder or browsed and selected one.  The script saves that destination folder if you save layer comps into it.  The next time you user Layer Comps to files the script will preset that field to the last distention folder you used.

JJMack
karpiyonAuthor
Inspiring
June 18, 2019

Yes I see that now.

My issue is slightly different - I use the "Export>Layer Comps To File" from within an actions.

I created an action to convert image to SRGb and after that i export all the layer comps.

When i use if from withing the action is ALWAYS reverts to the same destination:

C:\Users\UserName\Desktop

Can i do anything to change it?

JJMack
Community Expert
Community Expert
June 18, 2019

The script does not look like its a Plug-in Script so you cans not record setting for it in your action.  The only option you have is to make that step interactive.  Check the box in front of the step to turn one the  scripts dialog. If you good at scripting you could write a script like that one the is a Photoshop Plug-in.  Then the folder you used recording the step will be passed to the plug-in when the action is played.

JJMack