What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Reply to thread

To answer your questions,

You have to specify the path to files inside parenthesis of "new File()" as I have mentioned in the code (check the code comments).


You will need to add code to iterate a folder of images instead of just one file which is of not much use (you can add a GUI to allow user to select source and destination folders too instead of editing code to enter paths).


The code I posted will only copy top most path from a single image (sourceFile) to another (destinationFile). If you want to copy and paste all paths, you will have to iterate the paths collection and copy paste all of them.


You can learn more about PS scripting by referring the PDFs here (get the documents relevant to your version of PS and language you prefer to learn),

[URL unfurl="true"]https://www.adobe.com/devnet/photoshop/scripting.html[/URL]


What is our favorite program/app? (Hint - it begins and ends with the letter P)
Back
Top