🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #273

Re: javascript include?

#273
From: xbytor
Date: Tue, 17 Feb 2009 22:22
18 lines
1129 bytes
> 
> is there a way to include another script file into the current script (and then call a function from the other script)? e.g. to build a pure "library" file with lots of functions that can then be used by various other scripts.
> 

//@include "xlib/stdlib.js"

or

#include "xlib/stdlib.js"


The first is needed for backwards compatibility with CS (which I have to worry 
about) and maybe CS2.

This is documented in the JS Tools Guide in the ESTK chapter.

-X
Technical Details
Message-ID: <06E2F61CDB4E5A4052A3D70A0279B8BC@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7f796.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,50c86dc939db76c4
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: xbytor@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: javascript include?
Message-ID: <06E2F61CDB4E5A4052A3D70A0279B8BC@in.webcrossing.la2eafNXanI>
Date: Tue, 17 Feb 2009 14:22:40 -0800
References: <59b7f796.-1@webcrossing.la2eafNXanI>
Lines: 22
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit