• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

368

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

Community Expert , Mar 31, 2021 Mar 31, 2021
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.activeDo
...

Votes

Translate

Translate
Adobe
Community Expert ,
Mar 31, 2021 Mar 31, 2021

Copy link to clipboard

Copied

LATEST
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

😉

Votes

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