Add Filename Under a Placed Image

New Here ,
Mar 30, 2021 Mar 30, 2021

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.

TOPICS
Scripting, Third party plugins

Views

58

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Most Valuable Participant , Mar 31, 2021 Mar 31, 2021
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...

Likes

translate

Translate

Translate
Most Valuable Participant ,
Mar 31, 2021 Mar 31, 2021

Copy link to clipboard

Copied

quote

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

😉

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines