I have searched for this but have been unsuccessful in doing so...I want to be able to either;
a: copy the contents of a text layer to the clipboard so that when saving a file I can simply paste and save or...
b: save a file by the contents in a text layer.
My sole purpose is to make it so I don't have to type the name of a document that is created through data sets. What I have seen so far is that through scripting one cannot copy these things to the clipboard. Any help would be appreciated. Thank you and I hope that I have been thorough enough.
There is NO need to copy the contents to the clipboard when using script… You can just set a 'variable' to the value and use it when scripting the 'save as' part of the file path string.
You should be able to set up the data set so that the contents of the layer is the data set name. Then you can use File-Export-Data Sets as Files and have it save the files with the data set name.