🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1951

Re: pls explain abt prototype

#1951
From: xbytor
Date: Wed, 21 Jan 2009 19:38
15 lines
1424 bytes
Rick_Quatro@adobeforums.com wrote:
> When you extend these methods, do you have to do it at the top of every script? Or, is there a way to do it in an include file?
> 

I have an include file (stdlib.js) that I include with almost every script I 
write. I has these extensions and other things that I commonly use.

I could also put them in a separate script and place it in the Startup Scripts 
folder so it gets loaded automatically, but that just creates problem when other 
people use my scripts.

BTW, I get around the include file distribution problem by flattening my scripts 
to a single file as part of my packaging process.

-X
Technical Details
Message-ID: <1C56BC501CAB0CD33593278450ED5AD6@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b78cbc.-1@webcrossing.la2eafNXanI> <59b78cbc.9@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ba3fc2ccca9a708d
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: xbytor@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: pls explain abt prototype
Message-ID: <1C56BC501CAB0CD33593278450ED5AD6@in.webcrossing.la2eafNXanI>
Date: Wed, 21 Jan 2009 11:38:19 -0800
References: <59b78cbc.-1@webcrossing.la2eafNXanI> <59b78cbc.9@webcrossing.la2eafNXanI>
Lines: 20
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