🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #272

javascript include?

#272
From: christian-k
Date: Tue, 17 Feb 2009 21:45
9 lines
911 bytes
Hi,

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.

Is that possible?
If tried things like include(path/to/file.jsx), but that didn't work.
Couldn't find much clue in the scripting docs...

Any idea?
Technical Details
Message-ID: <59b7f796.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,50c86dc939db76c4,start
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: christian-k@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: javascript include?
Message-ID: <59b7f796.-1@webcrossing.la2eafNXanI>
Date: Tue, 17 Feb 2009 13:45:25 -0800
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit