Article View: adobe.scripting.indesign
Article #8565Re: Accessing arguments passed to a JavaScript script in ID Server
From: Debilo
Date: Wed, 11 Oct 2006 13:06
Date: Wed, 11 Oct 2006 13:06
9 lines
957 bytes
957 bytes
For me it works without any problems with ID Server (I use .NET). Here is some of my JS code to get the values:
if( app.scriptArgs.isDefined( "snippetPath" ) )
{
var snippetPath = app.scriptArgs.get( "snippetPath" );
page.place( File( snippetPath ) );
}
If your scriptArgs are empty then your problem is inside your java code!
Technical Details
Message-ID:
<3bc1ea40.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc1ea40.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ff2d3b94f191549d X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Debilo@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Accessing arguments passed to a JavaScript script in ID Server Message-ID: <3bc1ea40.2@webcrossing.la2eafNXanI> Date: Wed, 11 Oct 2006 06:06:12 -0700 References: <3bc1ea40.-1@webcrossing.la2eafNXanI> Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing