Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to pass variables between applications?

Guest
Oct 11, 2006 Oct 11, 2006
I am able to send fixed string from InDesign to Bridge like in my "sample 1", but not able to send variable like in "sample 2" (myDocName is the variable). How to solve this?

// sample 1
var bt = new BridgeTalk;
bt.target = "bridge";
bt.body = "var mydoc = 'MacintoshHD/MyFolder/Bot02.indt'; app.document.thumbnail = new Thumbnail(File(mydoc));"
bt.send();

// sample 2
var bt = new BridgeTalk;
bt.target = "bridge";
var myDocname = "MacintoshHD/MyFolder/Bot02.indt"
bt.body = "var mydoc = myDocname; app.document.thumbnail = new Thumbnail(File(myDocname));"
bt.send();

regards

Erkki
TOPICS
Scripting
482
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 18, 2008 Mar 18, 2008
LATEST
Hi,
a little late, but try this:

bt.body = "var mydoc = " + "\"" + myDocname "\"";

Stefan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines