Copy link to clipboard
Copied
Hi, How do I use #include in a Windows operating system?
Could you show me an example?
Thanks
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"
Copy link to clipboard
Copied
Very thanks
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
Copy link to clipboard
Copied
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