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!

Recent content by asela

  1. A

    Script error in PS 2021

    Looking at the error message, it looks like you have included this line in your code (are you sure you the code in the screenshot is what you are running in PS?), "Full script as follows to copy path from one image to another (have to provide file paths to sourceFile and destinationFile...
  2. A

    Script error in PS 2021

    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...
  3. A

    Script error in PS 2021

    Full script as follows to copy path from one image to another (have to provide file paths to sourceFile and destinationFile variables in the first two lines), var sourceFile = new File("File path to source file"); // file path to image that has the clipping path var destinationFile = new...
  4. A

    Script error in PS 2021

    Unfortunately I cannot give the original files, but I created two files in PS 2021 and attached them, they are giving the same error in PS2021 Can you please check? Thanks
  5. A

    Script error in PS 2021

    I checked with the code, if (sourceDoc.pathItems[0].kind == PathKind.CLIPPINGPATH) { boolCP = true; } and boolCP is true, so it's a clipping path. Also these images in question work fine with the script in Photoshop 2018. Thanks
  6. A

    Script error in PS 2021

    Did the script work for you in Photoshop 2021 (22.1.0)? Also the same image file worked fine with the script in Photoshop 2018 version.
  7. A

    Script error in PS 2021

    Thanks for looking into this. Copy command is available according to PS documentation page 219, https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-javascript-ref-2020.pdf Everything works fine up to that line of code, image with path is open in PS and Path 1 is selected as...
  8. A

    Script error in PS 2021

    Hi there, I have a script (Javascript) that copy / paste paths from one image to another. It has worked for a long time, but with PS 2021 on Windows 10, I get an error in this code where the selected path is copied (2nd line), var id122 = charIDToTypeID("copy"); executeAction( id122...
Back
Top