Copy link to clipboard
Copied
Hi.
I need to create an action that saves file from PSD into tiff, without levels, alpha channel and paths. I can't do that because I can't find how select all path (alpha channels) and clean and recording it in an action.
activeDocument.channels.removeAll();
activeDocument.pathItems.removeAll();
activeDocument.guides.removeAll();
Copy link to clipboard
Copied
activeDocument.channels.removeAll();
activeDocument.pathItems.removeAll();
activeDocument.guides.removeAll();
Copy link to clipboard
Copied
Thanks. It run ok but I can't use it in personalized action because I can't record the script. How I can fix it? Thanks
Copy link to clipboard
Copied
There is no such command as to select all paths or channels (I at least do not know).
For alpha channels you can use.
UPD. Or select all layers. Duplicate them to a new document and save it as Tiff
Copy link to clipboard
Copied
In this case I can delete alpha channels but not paths.... if I select all layers, duplicate them to a new document... this document lose the original document name so I can't use this solution in an action.
Copy link to clipboard
Copied
What's stopping you from just calling a script from Action?
Copy link to clipboard
Copied
While experimental.
This Action deletes all paths in the file even if they are not there.
Until it does not delete the Work Path.
Try it.
The key monent is to select a path with index 1, which can not be simply written to Action.
UPD. Works in CC2018, in CS6 does not.
Copy link to clipboard
Copied
No time now to focus on your problem, but maybe there is an answer: Re: removing alpha channels prior to save as TIFF