Skip to content
Advertisement

Photoshop Script — Trying to Replace an image from project root folder

i have totally re-editied My communication and spelling skills are not very good so sorry if you find it hard.

to make it easier to read i am going to shorten and sweeten my post

  1. i have a psd file with groups and layers set as needed

  2. i then created a script to chnage the text accordingly to json inout from a json file code and file example below.

    JavaScript

JSON Data example.

{“title” : “LONDON”, “ord” : “51.5074° N, 0.1278° W”}

  1. i then found a piece of code and altered it to my needs (well nearly) the code snippet allows a dialog to open and me to selct the file needed

the problem is i need it to select the image using the title name from the json data to the grab say example LONDON.PNG and then replace it all without a dialog and selection (silent and auto)

what is happening with my new code snippet added

below is my uodated code and screenshot of my projects root folder

JavaScript

root folder content and structure

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement