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

#INCLUDE IN WINDOWS OS

Participant ,
Jul 17, 2018 Jul 17, 2018

Copy link to clipboard

Copied

Hi, How do I use #include in a Windows operating system?

Could you show me an example?

Thanks

TOPICS
Scripting

Views

543

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
Community Expert ,
Jul 17, 2018 Jul 17, 2018

Copy link to clipboard

Copied

should be exactly the same as on a mac. the only difference would be how you start the file path. i'm not exactly sure how relative file paths work on windows since i don't use it, but for absolute file paths you should be able to use the following:

#include "C:/Path/To/File.jsx"

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
Participant ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

Very thanks

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
Community Expert ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

if the included file is in the same directory as the script, only the file name is needed

#include supportFunctions.jsx

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
Advocate ,
Dec 16, 2018 Dec 16, 2018

Copy link to clipboard

Copied

LATEST

Bonjour,

Exemple pour CS6 Windows

Si le sript appelant est dans :

C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Presets\fr_FR\Scripts\cartouche

et le script à inclure (par exemple "ominoDialogMaker.jsxinc") est dans :

C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Presets\fr_FR\Scripts\include

Tu peux utiliser le chemin complet :

#includepath "/C/Program Files/Adobe/Adobe Illustrator CS6 (64 Bit)/Presets/fr_FR/Scripts/include/";

#include "ominoDialogMaker.jsxinc";

Ou un chemin relatif : (indépendant de la version d’Illustrator)

#includepath "./include";   // ou "../script/include";

#include "ominoDialogMaker.jsxinc";

Ou encore un liste de chemins séparés par un ; point virgule

de LR elleere

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