Article View: adobe.scripting.indesign
Article #389[CS4-js] calling function from external file
From: Steven_F._Bryant
Date: Wed, 25 Mar 2009 15:01
Date: Wed, 25 Mar 2009 15:01
13 lines
1506 bytes
1506 bytes
When setting up an event listener, I currently use 1 of 2 options. Either I attach a file path to a script to run onInvoke, or I call a function which is included in the file creating the menu. The difference is that in order to be able to call a function, the file still has to be loaded into memory with '#targetengine session' or the like, where when using a path to a file it need not be loaded into memory. The issue with #targetengine... is that it can't be exported to jsxbin leaving the code exposed. The issue with a file path is creating many file that may share certain functions. So I was just wondering if it's possible to use a file path combined with a function name to call a specific function in a file without using #targetengine. Any help, or if I should try something totally different is appreciated. Steven RapidScriptUI <http://www.scriptui.com> idRTL <http://sites.google.com/site/adoberighttoleft>
Technical Details
Message-ID:
<59b867a1.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,b53e0fd2133f891b,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Steven_F._Bryant@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [CS4-js] calling function from external file Message-ID: <59b867a1.-1@webcrossing.la2eafNXanI> Date: Wed, 25 Mar 2009 08:01:49 -0700 Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit