Copy link to clipboard
Copied
How do I add a filename under a placed image, similar to a caption in InDesign? I believe there is a script for this.
How do I add a filename under a placed image, similar to a caption in InDesign? …
By @didi.did.it.
Too little information - but nevertheless:
Select the placed item in your document and give that snippet a try.
// placedItem_add_placedItems_name_as_caption.jsx
// Add Filename Under a Placed Image
// https://community.adobe.com/t5/illustrator/add-filename-under-a-placed-image/td-p/11938008
// requirement: select the placed item in your document and run this snippet
var aDoc = app.activeDo
...
Copy link to clipboard
Copied
How do I add a filename under a placed image, similar to a caption in InDesign? …
By @didi.did.it.
Too little information - but nevertheless:
Select the placed item in your document and give that snippet a try.
// placedItem_add_placedItems_name_as_caption.jsx
// Add Filename Under a Placed Image
// https://community.adobe.com/t5/illustrator/add-filename-under-a-placed-image/td-p/11938008
// requirement: select the placed item in your document and run this snippet
var aDoc = app.activeDocument;
var aSel = aDoc.selection[0];
var aTF = aDoc.textFrames.add();
aTF.contents = aSel.file.name;
aTF.position = [aSel.left+aSel.width-aTF.width, aSel.top-aSel.height];
If that works for you
have fun
😉