🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #194

Re: Need help [JS]: select images/captions in InD, switch to Bridge and write to XMP

#194
From: xbytor
Date: Tue, 31 Mar 2009 16:41
12 lines
1172 bytes
> By the way, if I change toString() to toSource() I am unable to pass the variable to Bridge. So I suspect that they are not identical.


Using toSource like this should work.

  var bt = new BridgeTalk;
  bt.target = 'bridge';
  myScript = 'myRemoteFunction = ' + myRemoteFunction.toSource() + ';\n\n';
  myScript += 'myRemoteFunction(\"' + someVariable +'\");\n';
  bt.body = myScript
  bt.send();
Technical Details
Message-ID: <922D476336EA56363AD51595AB6E3620@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b86349.-1@webcrossing.la2eafNXanI> <59b86349.6@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: xbytor@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.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: <922D476336EA56363AD51595AB6E3620@in.webcrossing.la2eafNXanI>
Date: Tue, 31 Mar 2009 09:41:10 -0700
References: <59b86349.-1@webcrossing.la2eafNXanI> <59b86349.6@webcrossing.la2eafNXanI>
Lines: 15
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit