🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1118

Re: Run a script from a script

#1118
From: Dave_Saunders
Date: Tue, 17 Feb 2009 15:04
13 lines
866 bytes
Ah, you'll need the getScriptPath function:

function getScriptPath() { 
  // This function returns the path to the active script, even when running ESTK 
  try {  
    return app.activeScript;  
  } catch(e) {  
    return File(e.fileName);  
  } 
} 


Dave
Technical Details
Message-ID: <59b7f103.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7f103.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,f8ddc776849b52bb
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Run a script from a script
Message-ID: <59b7f103.2@webcrossing.la2eafNXanI>
Date: Tue, 17 Feb 2009 07:04:44 -0800
References: <59b7f103.-1@webcrossing.la2eafNXanI>
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit