Can't communicate between JS and ExtendScript

I tried this: (according to the docs it should work)
In JS
var csInterface = new CSInterface();
csInterface.evalScript('$.test()', function(r){console.log(r)})
In JSX
$.test = function() {
                   alert("test");
                    return 65656;
I'm seeing the alert, but the logged statement is empty. Anyone know how to communicate between the two?

I tried a few ways but the only way I could do it properly was pretty involved:
1) Use Socket.io to communicate between generator and extension
2) When you want to raise an "event" from JSX, update generator settings, use a unique id for your event
3) Parse the event in generator
4) Emit the event from generator to extension.

Similar Messages

  • I have siemens plc s7-300 and labview how can i communiction between plc and s7-300

    Hi all good  morning
     iam new user for labview
    now iam working one new projects with labview and s7-300 automation plc  so how can i communication between plc and s7-300 using profibus or ethernet cables can any one help me with example
    thanks
    best regards
    vijaynagar.

    Dear vijaynagar,
    it would be posible to communicate with our Comsoft PROFIBUS products like DF PROFI II, FNL or cRIO PB.
    Please have a look at:
     - DF PROFII:  PCI, PCIe, C-PCI or PC104+ card with LabVIEW drivers: Link
     - FNL: Ethernet/PROFIBUS Gateway: Link
     - cRIO PB, C-Series module for National Instruments FPGA chassis: Link
    The DF PROFI II can be bought directly from Comsoft, the cRIO PB can be bought from National Instruments.
    Regards,
    Sven
    P.S. If you have any questions feel free to contact: [email protected]

  • How can I communicate between two simulated software

    Hallo,
    I have confusion regarding this topic "How can I communicate between two simulated software".
    1: PC with CAN simulation
    2:  PC with AFDX Simulation
    Now i have to communicated these two pc with each other.
    How can i communicated? which module from ni is best for it.
    thanks in advance
    BR

    I recommend looking at the Simple Messaging Reference Library that NI has released.  Use the TCP/IP version of it.
    FYI, TCP/IP is a communication protocol that is used to communicate between two computers.  It is what the internet uses.  So you just need a network switch or router between your computers and you can talk to each other with their IP address.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can I swap between usb2 and usb3 on macbook pro retina

    can I swap between usb2 and usb3 on macbook pro retina.
    At the moment I have an external USB2 HDD and have ordered
    a new USB3 HDD.
    Does the macbook automatically recognise the difference.
    Regards
    oldboy135

    Yes, the MBP will accommodate USB2 peripherals in the USB3 ports, but the transfer rate will be at USB2 speeds.
    You may use both without concern.
    Ciao.

  • Can I switch between Illustrator and Photoshop? (I am subscribing to only one product per month)

    Can I switch between Illustrator and Photoshop? (I am subscribing to only one product per month)

    Absolutely. Just change the sim card and the APN details in the settings. You can do this either manually if you know them or just sync with iTunes after changing the sim and the details will sync. Once you have done it once for each network the device seems to remember the details.

  • I can't paste between AI and PS.

    I can't paste between AI and PS. When I paste from one Illustrator document and another it works fine but when I paste from AI to PS I get a blank box of the right size but no content. I've done this 100s of times but today it does not work. Also PS to PS works, just not Illustrator to Photoshop. Any ideas? Thanks

    Yes, it's easy when you know how
    You can even swipe in the middle of the screen.

  • I had formatted external HDD as Mac OS Extended(journaled) earlier, but now i want to format the same as ExFAT so that i can copy files between PC and MAC. But it is giving 'Can't unmount' error while i try to run Erase

    I had formatted external HDD as Mac OS Extended(journaled) earlier, but now i want to format the same as ExFAT so that i can copy files between PC and MAC. But it is giving 'Can't unmount' error while i try to run Erase

    Use the PC to reformat the drive.

  • Why my MDM Server can only communicate with ipads and iphones with logging Junos sslvpn.

    Why my MDM Server can only communicate with ipads and iphones when either of the iPhone or iPad Junos sslvpn?  Any ideas
    Our iPad and iPhones users have to log in to Junos SSLVPN to be able to communicate with our MDM Server (via wi-fi).  Any ideas where users don't have to log in to Junos SSLVPN?

    This bothers me so much. It is absolutely ridiculous. I use my Apple ID as well as a family member's Apple ID to download music.
    Every once in a while I will purchase a song and it won't download correctly or will give me an error that my computer is not authorized, a solution I usually fix by deleting and redownloading the song from the cloud. This doesn't work, however, when it happens to both accounts within 90 days.
    It is incredibly frustrating to me that I have paid for a song, it downloaded incorrectly, and I must wait 90 days to try downloading it again because of these assinine policies.

  • Can't copy between Classic and OS X

    Hi,
    i carbon copied a OS 10.4 installation to a new disk, then copied an os 9 folder to that same disk in the root directory. Now i get an error message that i can't copy between classic and os x, an error message that keeps on appearing.
    Both the os x.4 and the classic version worked before on that same mac, but on different disks... any chance why this won't work anymore??
    G4   Mac OS X (10.4.6)  

    Hi Peter. Welcome to the Forum…
    Please give the exact wording of the error message, and a brief description of the circumstances.
    How many disks were involved in copying OS 10.4 to a new disk, please? It can work but it's not reliable to clone from the boot volume, so you should really do that only with a third disk to boot from…
    Are there no other symptoms? Everything but copying works fine?

  • Do you have any cable can mirror screen between iphone4 and monitor ?

    Do you have any cable can mirror screen between iphone4 and monitor ?

    the vga and the hdmi ones should

  • Can't switch between  fill and outline.

    Here's the problem: I'm on an iMac, new, trying to use illustrator CS5. after using CS3 for a few years. In CS5, if I draw a shape, flat, in the illustration, then try to give it an outline, or change the outline, or do anything with the outline, I can't. If I click on the Shape tools in the toolbox and draw out an oval, for example, I can switch between outline and fill without any problems. Select shape, go to toolbox, select curved arrow for switching from one to the other. That's it. But if I draw a freehand shape, then try it, i can't do it. THIS IS A BIG CHANGE FROM PREVIOUS VERSIONS OF THE APP. GET IT? What is the problem? If it's something I have done, fine, tell me and I'll fix it. I tried calling Adobe support in Bangalore, and it took 30 minutes just to get the problem thoroughly appreciated by the techies. They just couldn't get the idea for half an hour! I had to go over it 4 or 5 times. And they couldn't come up with an answer. they were no help at all. I'm hoping the forum will yield better results. This is pathetic, guys. Your 90-day tech support is a worthless piece of crap, guys. The only tech support we have is this catch-as-catch-can forum. I've been using Illustrator since 1987, (illustrator 88) believe it or not, it's true. And I've always been able to get tech support to cure the ills. Not any more. Is that the way Adobe plans to offer tech support? if there were a way to contact Adobe Tech Support by going around Adobe Bangalore, i would use it. But, alas, I am stuck with this.

    Dear Monika and Mylenium: I figured out part of the problem, but not the solution: The shape I had drawn -and coudn't  switch between fil and stroke on-is one I had already done a gradient mesh on, too. I had later abandoned the gradient mesh by using the option key to delete mesh lines, but that didn't take the shape all the way back to its original flat state. So it wasn't a plain drawn shape any more. So how do I release the gradient mesh  to get back to  a flat shape? I'm also having trouble keeping the shapes in RGB or CMYK mode-they keep defaulting back to greyscale. Could that also be a symptom of using gradient mesh? Note: I'm using gradient mesh for the very first time now; I've never used it before. It seems to leave a lot of unexpected baggage behind. I would send a screen shot, but if I start up Grab or Voila, all the AI pallets go away, and that's half the information.  So how do I control gradient mesh?

  • No connection between soundbooth and extendscript toolkit 2

    I would like to control soundbooth using extendscript toolkit 2. From extendscript I can make a choice to connect to extendscript toolkit 2 itself, to Bridge CS3 and to Soundbooth CS3.
    Bridge and Extendscript connections work OK but conncetion to Soundbooth does not work. I can start Soundbooth from Extendscript but then it hangs trying to make a connection.
    Working under Windows XP service pack 2, dutch
    leo

    See Here...
    Device Not Recognised
    http://support.apple.com/kb/TS1538
    And Here
    iPhone, iPad, or iPod touch not appearing in iTunes
    iPod appears in Windows but not in iTunes
    Also, Here...
    Unable to Update or Restore
    http://support.apple.com/kb/HT1808

  • How Can I Blink Between Before and After in Liquify?

    I think I've done this before (in prior versions), but I'm drawing a blank...  Is there a quick way to blink between before and after results in Liquify?
    Thanks.
    -Noel

    There are several ways i can think of
    1. Alt click on the cancel button and the Ctrl+Z
    2. Hit the Restore All button then Crtl+Z
    3. If you have the advanced options showing you could use Show Backdrop and then toggle the Show Image

  • Driver to communicate between LabVIEW and Omron CJ1G PLC

    I am trying to communicate between my Omron PLC (Model CJ1G) and LabVIEW.  I want to be able to read specific registers and be able to display and save the data in LabVIEW.
    I have the "Idustrial Automation Servers for OPC" CD but my PLC model no. doesn't appear under the Omron options.
    What other options do I have?
    Thanks, in advance,
    Felipe

    Hi Felipe:
    I checked in our PLC compatibility database and the only Omrom PLCs that are supported are the following: C20, C200, C500, C1000, C2000, CQM, and CPM1.
    The PLCs that are suppored in the IA OPC server is based on the driver dll that was supplied to us by Omron. When newer PLCs are released, they are not included in this dll and are thus not supported. You might want to contact Omron to see which OPC Server supports that PLC. You should be able to use any 3rd party OPC Server to work with DSC which will then be the OPC Client.
    Hope this helps.
    Best Regards,
    Jaideep

  • Failed to communicate between MIDlet and Servlet

    hi all
    i got a trouble here hope someone can get me out of this.... i've run example from a website even from Sun itself which demo the communication between MIDlet and Servlet.... but below is what i got:
    "*Application not authorized to access the restricted API*"
    the source code from: http://didiksoft.wordpress.com/
    im using tomcat webserver 4.1.3.... jsdk 5.0.... Sun JWT 2.5..... is there something that i missed to configure..??? thanks in advance....

    I have the same problem in XP. I installed the whole Oracle9i product on my desktop and after a day or two the message began appearing on my machine. I couldnt use any of the tools. I tried uninstallinmg according to Oracles instruction and after installing again had the same problem.
    I logged a TAR and they advised me to reinstall but according to Oracles instructions for removing the software first.
    Will keep you posted

Maybe you are looking for