This image was created by copying it from another application and pasting it into InDesign. That's why it is not a link and has no itemLink property. The error occurs when the script tries to access it.
Thanks for your quick response..
Please give any solution for my script for copy and paste from source document and target document.
Customer using that kind of art also.
Trying in below way. It not to be sucess
As far as I know, placing an image without creating a link (by coping & pasting) is possible on Mac only. But I'm currently on PC.
1 person found this helpful
You are not using the variable "myGraphicsName" *anywhere* else in the rest of your script. What happens if you remove this line?
Kasyan, it's posibile on pc too.
Beginner, the entire
var myGraphicsName = myGraphics[i].itemLink.name; myGeometricBounds = myGraphics[i].parent.geometricBounds var myWidth = myGeometricBounds - myGeometricBounds var myHeight = myGeometricBounds - myGeometricBounds
Also, try to avoid using copy and paste functions whenever possible, they slow down the script a lot.
Another note, you should make a habbit of ending your statements with ;
Thank you for your response....
This one is part of script only.
Image without link name on that time my script quit.
Now Using the below code without error:
var myGraphicsName = myGraphics[i].itemLink.name;
Now my script works fine.