Article View: adobe.scripting.indesign
Article #430Re: Need help [JS]: select images/captions in InD, switch to Bridge and write to XMP
From: Bob Stucky
Date: Tue, 24 Mar 2009 13:35
Date: Tue, 24 Mar 2009 13:35
19 lines
1140 bytes
1140 bytes
It's a syntax error in the script you're sending to bridge.
Write the function like this:
myRemoteFunction = function() {
this.requiredContext = "Needs to run in Bridge, with a selection of a file, ideally with some metadata";
...
}
Without all the myScript += "..." stuff.
Then run the script in Bridge from the ESTK. Once it's debugged then
myScript = myRemoteFunction.toString();
myScript += "myRemoteFunction();\n";
That's a lot easier that what you're doing now.
Bob
Technical Details
Message-ID:
<59b86349.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b86349.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,68eea3d0b07f2331 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Bob Stucky" <rstucky@starband.net> Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Need help [JS]: select images/captions in InD, switch to Bridge and write to XMP Message-ID: <59b86349.2@webcrossing.la2eafNXanI> Date: Tue, 24 Mar 2009 06:35:03 -0700 References: <59b86349.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit