🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1119

Re: Run a script from a script

#1119
From: Dave_Saunders
Date: Tue, 17 Feb 2009 15:04
13 lines
1026 bytes
Here's the kind of thing I use:

  function runShortRanges() { 
    var shortRangesScript = File(getScriptPath().parent.parent + "/IndexExtras/ShortRanges.jsx"); 
    if (shortRangesScript.exists) { 
      app.doScript(shortRangesScript); 
    } 
  } 


In this case, I want to run a particular script in a known location, only if it exists. It's a way of adding optional functionality to a script.

Dave
Technical Details
Message-ID: <59b7f103.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.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!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Run a script from a script
Message-ID: <59b7f103.1@webcrossing.la2eafNXanI>
Date: Tue, 17 Feb 2009 07:04:08 -0800
References: <59b7f103.-1@webcrossing.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit