Copy link to clipboard
Copied
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,
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;
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
thank
Copy link to clipboard
Copied
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;