Skip to main content
Inspiring
July 17, 2018
Question

#INCLUDE IN WINDOWS OS

  • July 17, 2018
  • 2 replies
  • 669 views

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

Could you show me an example?

Thanks

This topic has been closed for replies.

2 replies

renél80416020
Inspiring
December 16, 2018

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

Disposition_Dev
Legend
July 17, 2018

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"

Inspiring
December 14, 2018

Very thanks