Article View: adobe.scripting.indesign
Article #14910Re: Script reloading
From: Alan_Stearns
Date: Fri, 09 Jan 2004 01:19
Date: Fri, 09 Jan 2004 01:19
13 lines
1202 bytes
1202 bytes
I also wonder if there is a #include directive in JavaScript?
There is! You can include a file either with a c-style #include or as a preprocessor statement // @include. The file to include can be specified relative to the folder the script contains, or as an absolute path. If the filename or path contains anything other than numbers or letters, then it needs to be surrounded by either single or double quotes:
#include filename
#include "/absolute/path/to/filename"
// @include 'relative.filename'
// @include "/abs/path/to/filename"
Technical Details
Message-ID:
<2ccf40c3.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf40c3.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,eb826409c3cde3cc X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-08 17:37:44 PST From: Alan_Stearns@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Script reloading Message-ID: <2ccf40c3.2@webx.la2eafNXanI> Date: Thu, 8 Jan 2004 17:19:51 -0800 References: <2ccf40c3.-1@webx.la2eafNXanI> Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit