Copy link to clipboard
Copied
Hi all
I have a hand me down script which I run in ExtendScript Toolkit CS, which takes data I hold on a spreadsheet and allows me to create different versions of files with different info. It has always worked fine, but the script also has a function where it should allow me to replace a image/logo in the same way that I would change a URL or contact info. But I can never get that bit to work, I just don,t know how to lable it in indesign for my script and spreadsheet to find it.
this is the bit of the script for images.
and this is the data from the spreadsheet it runs off
Can anybody help me please?
Thanks
Neil
Copy link to clipboard
Copied
There are dozens of reasons why your script could fail. A wild guessing would be a reference issue.
Is the logoFrame valid ? Is the url valid ? is the object style valid ?
What is the message you get ?
try this :
try {
//your image loop
}
catch(err) {
alert( err.line+"//"+err.message );
}
Copy link to clipboard
Copied
Check in the layer palette, if the logoFrame has the name "reverse-flat"
Thanks Stefan