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

#INCLUDE IN WINDOWS OS

Participant ,
Jul 17, 2018 Jul 17, 2018

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

Could you show me an example?

Thanks

TOPICS
Scripting
653
Translate
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

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"

Translate
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

Very thanks

Translate
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

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

#include supportFunctions.jsx

Translate
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
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

Translate
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