Copy link to clipboard
Copied
Hi,
I am working on a few documents which consist of placed and pasted images. Since, pasted images don't show up in Links panel hence, there is no way to find out the total image count. Is there a way to find out the total number of images (inclusive of linked and pasted images) through a script? I found out this thread:
https://forums.adobe.com/thread/2416449
However, this generates results in a JavaScript Console of the ESTK (ExtendScript Toolkit), which I don't have. Hence, I am looking for a pop-up or document oriented result.
I have no idea about script editing, and would be grateful if anyone could help with the same.
Thanks & Regards,
Aman
Hi Aman,
just give it an alert instead of a $.writeln.
var doc = app.documents[0];
var result = [ "Doc Name" +" : "+ "Total Number of Graphics on Doc" ];
result[1] = doc.name + " : " + doc.allGraphics.length
alert("RESULT"+"\r"+result.join("\r"));
FWIW:
The ExtendScript Toolkit app can be downloaded here:
Or right-click a sample jsx script in the Scripts Panel and chose "Edit".
The ESTK should be downloaded and installed if it is not there.
Regards,
Uwe
Copy link to clipboard
Copied
Hi Aman,
just give it an alert instead of a $.writeln.
var doc = app.documents[0];
var result = [ "Doc Name" +" : "+ "Total Number of Graphics on Doc" ];
result[1] = doc.name + " : " + doc.allGraphics.length
alert("RESULT"+"\r"+result.join("\r"));
FWIW:
The ExtendScript Toolkit app can be downloaded here:
Or right-click a sample jsx script in the Scripts Panel and chose "Edit".
The ESTK should be downloaded and installed if it is not there.
Regards,
Uwe
Copy link to clipboard
Copied
Hi Uwe,
Thank you so much for the help! It worked perfectly. Big thank you!
Thanks & Regards,
Aman
Find more inspiration, events, and resources on the new Adobe Community
Explore Now