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

Intégrer le nom du fichier sur le document

New Here ,
Jan 18, 2023 Jan 18, 2023

Copy link to clipboard

Copied

Bonjour, 

Je souhaiterais avoir en variable dans mon document illustrator le nom du fichier lui même. Je n'arrive pas à trouver comment faire. 

SI le document s'appelle DOCUMENT.PDF avoir un texte automatiquement écrit : "DOCUMENT.PDF"

A bientôt, et merci pour votre aide.

Marc-Olivier Epitaux

TOPICS
Feature request , Import and export , Scripting

Views

133

Likes

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
LEGEND ,
Jan 18, 2023 Jan 18, 2023

Copy link to clipboard

Copied

You need a script. Variables can't do that. refer to this (and similar discussions):

 

https://community.adobe.com/t5/illustrator-discussions/how-to-script-illustrator-to-insert-filename-...

 

Mylenium

Likes

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
Community Expert ,
Jan 18, 2023 Jan 18, 2023

Copy link to clipboard

Copied

Hi @Marc-Olivier22006960bcst, the very basic script is:

var doc = app.activeDocument,
    tf = doc.textFrames.add();
tf.contents = doc.name;

 - Mark

Likes

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
Adobe Employee ,
Jan 26, 2023 Jan 26, 2023

Copy link to clipboard

Copied

Hello @Marc-Olivier22006960bcst,

 

Thanks for reaching out. I hope the suggestions shared by Mylenium and m1b helped answer your queries.

Feel free to reach out if you have more questions or need assistance. We'd be happy to help.

 

Thanks,

Anubhav

Likes

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
New Here ,
Jan 26, 2023 Jan 26, 2023

Copy link to clipboard

Copied

LATEST
Bonjour,

Thank you very much, proble is that i don ’t know about scripting in java 🙂
A bientôt, Marc-Olivier Epitaux.

Société SERIALETIC
18, rue Diderot - F-93100 Montreuil
Tél : 01 48 59 52 17
pao@serialetic.fr

Likes

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