Use of socket in CS5 JS

Hello.

I got this request in another post, but it is hidden under an inappropriate topic, let so first apologized me for duplication. I'll remove the other post.

In any case, I'm eager to open a http socket and post a message to a php page that connects to my mistakes and sent me e-mails.

I can do this by using a JS-> Applescript-> shell script using the doScript method, but I need eliminate the need for a Mac.

I can use the socket method to return data from a html page returned using a provided API, successfully so I know that the reception is possible, but perhaps there is a restriction on sending an argument.

Here is the code that I use, it is a page on a live server, so if something is successful, it will be validated, and I will receive emails! Not that I don't mind, I just wanted to say.

function combinedErrorReportWithSocket (errorText) //errorText is something like "library not found".

{

= myServerAddress ' automation.yappp .net: 80 ";

errorText = encodeURI (errorText);

Conn = new Socket();

Conn.Open (myServerAddress);

Conn.Write ("GET sendSrcError.php? e =" + errorText + ""-HTTP/1.0\n\n "");

response = conn.read (999999);

Conn.Close;

}

If this isn't a proper way to go about this, can someone suggest an alternative? I don't want to stay away from Applescript function however.

Thanks in advance

To?

Answer your original thread, I would ask you do not divide the wire in the future.

http://forums.Adobe.com/message/3963488#3963488

Tags: InDesign

Similar Questions

  • Bluetooth using RFCOMM Sockets

    Hello

    I'm working on a project that requires LabVIEW communicate with a raspberry Bluetooth Pi. The Pi is running Python and using PyBluez to the side of Bluetooth.

    Preference LabVIEW will connect to IP using a Socket Bluetooth on RFCOMM, however I can't find a way to open a socket in LabVIEW, only one channel. With the help of the RFCOMM VI build LabVIEW, I am able to see the IP (the name of the device and MAC themselves) but not connect to it.

    Does anyone know if this is even possible? I am currently using LabVIEW 2013 but the upgrade to a later version is an option if this support is included.

    See you soon,.

    Darren.

    Hi DazzaNL,

    You try to use LabVIEW as a server or a Client? If you use LabVIEW as a customer, you should be able to use the open connection VI Bluetooth to connect to a server.

    The examples for Bluetooth with LabVIEW locations are given in this paper and include an example of using LabVIEW as a server:

    http://www.NI.com/white-paper/3260/en/

    Hope this helps you,

  • How to use the Socket for AS3 networking?

    Hello, I'm a Flash game and have successfully obtained the RTMFP to work, but it is not very reliable and has a little loss of packages inside. I've heard many people only using TCP (socket), it is much tighter, but I have no idea on how to do it. I've Googled it many times, yet I really can't seem to find a clear answer. I hear you must have a server... How do you get one? Is it possible to make your own simple server that people your LAN can play? Thanks in advance.

    Yes, you can make your own simple server using the ServerSocket class and connect with the Socket class. And then you have TCP... it's actually pretty simple. Discover the ServerSocket docs to start, and there are also many examples if you googled around.

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/ServerSocket. HTML

  • Will using a series of CS5.5 upgrade to CC on a new account work?

    Hi all, you have a question, I can't seem to find the answer to searching the forums and Google.

    I want to upgrade to creative cloud on a new computer that requires a series of a previous creative suite. I have CS5.5 which is registered with a different account. Can I use the serial number CS5.5 upgrade to CC and install it on a new computer with an adobe account?

    Thank you!

    To anyone interested. I spoke with the service the customer and they said that, Yes, you can.

  • Only to get the pointer-nothing else; cannot be on/off switch. So, I use the socket on the wall?

    Can not get the computer; only to get the pointer so I turned off with the switch on the wall socket?

    Hello

    1. What is the brand and model of the computer you're using?
    2. what operating system is installed on the computer?
    3. any changes to the computer before the show?

     
    You can disconnect all external devices except the keyboard and mouse and check if you are able to boot to the desktop
     
    Method 1:
    I suggest you to start the computer in safe mode. Let us know if you face the issue in safe mode or not. Check out the link below to start the computer in safe mode:
    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode
     
    Method 2:
    I suggest you start WinRE (Windows Recovery Environment) and perform the Startup Repair.
     
    To start in WINRE and for more information about Windows RE view the following link.
    http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7
     
    Once you start in WINRE try Startup Repair and check if this may help solve the issue, to perform the startup repair using the link below:
    http://Windows.Microsoft.com/en-us/Windows7/Startup-Repair-frequently-asked-questions
     
    Also check out the following link:
     
    I hope this helps!
  • SSL/tls over TCP using tcplistner socket or a tcpclient

    I am trying to use ssl/tls, TCP, but in my code, the socket is used not a tcpclient or tcplistner. I searched on the net at least 200 links but I have not everything related that. I want to use less coding and fact ssl or tsll during the tcp socket connection. I have a client, server, certification authority, a key to the .key format. Please help with the example.

    Hello

    TechNet support team can solve your problem correctly since your question is beyond the scope of what is generally answered here.

    Kind regards.

  • How can I use my portable Adobe CS5 on my new computer license

    Hello

    I bought Adobe Creative Suite 5.5 Design Standard (student and teacher edition) when I started studying, but I have installed in the PC no longer works. My new laptop is a macbook, so how do I use my subscription on this laptop? I tried to download the CS5 Design Standard of the Adobe Web site, but it does not accept my product key, saying "this serial number is not valid for this product". So, what should I do? I am still a student so I can't afford to update for cc, but I need very expensive Adobe products for my thesis.

    Kind regards

    Katariina

    If your student permit is a Mac version, then you should be able to download CS5.5 and activate it with your serial number.  Your serial number does not work for another version, so try to get the work of CS5 will not get anywhere.  CS5 and CS5.5 are two quite different versions (5.5 should have been 6)

    CS5.5 - http://helpx.adobe.com/creative-suite/kb/cs5-5-product-downloads.html

  • Can I use creative cloud and CS5.5?

    I want to switch to creative cloud, but I don't want to lose my current license from the Creative Suite 5.5. If I update, should I uninstall / deavtivate 5.5?

    Yes, if your computer is compatiable for CS5.5 and CS6 software, you can use CS5.5 with software creative CS6 cloud at the same time.

  • Using HttpUrlConnection Sockets?

    In its implementation, java.net.HttpUrlConnection uses java.net.Socket or java.net.ServerSocket?

    Thank you very much!

    java.net.HttpUrlConnection uses java.net.Socket

    Yes.

    or java.net.ServerSocket?

    N °

  • Can you sell used software Adobe Photoshop CS5 (Windows)?

    I have no use for the Adobe Photoshop CS5 (Windows). Is it possible to sell the software on ebay?

    What about the license?

    Thank you

    John

    Yes, you can. Read: http://kb2.adobe.com/cps/152/tn_15281.html

    Mylenium

  • I have a problem when you try to receive data using the socket connection.

    Hello

    I created a socket connection between a pc (sever, win32) and a blackberry (client) and I have only two questions:

    -When I send a string to the sever I get the unexpected result, I doubt if it's a problem of encoding between platforms.

    -When I try to receive data, (an array of char as a string object), the customer demand freeze (drawing and management of events, so basically the main UI thread), even if I did all the stuff of connection in a separate thread, until I have shut down the server and also no data is received.

    I left the codes below and would assess any response from you.

    C++, win32 console application:

    SOCKET _Socket;

    int _tmain (int argc, _TCHAR * argv)

    {

    If (start_sever (_socket)) {}

    char r_msg [26];

    recv (_socket, r_msg, 26, 0);

    std::cout< "receive="" :="" "="">< r_msg=""><>

    char * s_msg customer = 'welcome ';

    Send (_socket, szMessage, strlen (S_MSG), 0);

    std::cout< "send="" :="" "="">< s_msg=""><>

    Sleep (500);

    Shutdown (_socket, SD_SEND);

    closesocket (_socket);

    WSACleanup();

    } else {}

    std::cout< "cannot="" initialize="">< std::endl="">

    }

    System ("pause");

    return 0;

    }

    BOOL start_sever (socket) {}

    WSADATA WsaDat;

    If (WSAStartup (MAKEWORD (2.2) & WsaDat)! = 0)

    {

    std::cout<"WSA initialization="">

    WSACleanup();

    System ("pause");

    Returns false;

    }

    Socket = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if(Socket==INVALID_SOCKET)

    {

    std::cout<"Socket creation="">

    WSACleanup();

    System ("pause");

    Returns false;

    }

    SOCKADDR_IN serverInf;

    serverInf.sin_family = AF_INET;

    serverInf.sin_addr.s_addr = INADDR_ANY;

    serverInf.sin_port = htons (8888);

    If (bind (Socket,(sockaddr*) (& serverInf), sizeof (serverInf)) == SOCKET_ERROR)

    {

    std::cout<"Unable to="" bind="">

    WSACleanup();

    System ("pause");

    Returns false;

    }

    Listen(Socket,1);

    SOCKET TempSock = SOCKET_ERROR;

    std::cout< "build="">

    while(TempSock==SOCKET_ERROR)

    {

    std::cout<"Waiting for="" incoming="">

    TempSock = accept (Socket, NULL, NULL);

    }

    Socket = TempSock;

    std::cout<"Client>

    Returns true;

    }

    Platform of Java for blackberry:

    public class Bush extends form {}

    -my current ipv4 address is set by default to avoid reset at each test

    TextField ip_text_field = new TextField ("IP address:", "192.168.65.1");

    -the server is waiting for any connection to this port ("8888")

    TextField port_text_field = new TextField ("Port:", "8888");

    ButtonField go_button_field = new ButtonField ("Connect", Field.FIELD_HCENTER) {}

    protected Boolean invokeAction (int action) {}

    UiApplication.getUiApplication () .invokeLater (new Runnable() {}

    public void run() {}

    try {

    open_connection();

    }catch (System.Exception e) {}

    e.printStackTrace ();

    Dialog.Alert (e.getMessage ());

    }

    }

    });

    return true;

    }

    };

    public Socket() {}

    Super ();

    setTitle ("[taking sample]");

    Add (ip_text_field); ip_text_field.setMargin (20, 0, 0, 0);

    Add (port_text_field); port_text_field.setMargin (30, 0, 0, 0);

    Add (go_button_field); go_button_field.setMargin (30, 0, 0, 0);

    }

    public Boolean onClose() {}

    this. close();

    return true;

    }

    _Con StreamConnection;

    DataInputStream _in;

    OutputStreamWriter _out;

    public Sub open_connection() throws Exception {}

    _CON = (StreamConnection) Connector.open ("socket: / /" + ip_text_field.getText () + ":" + port_text_field.getText () +)

    » ; deviceside = true; interface = wifi");

    this.add (new TextField ("", "connected successfully to Server"));

    _in = _con.openDataInputStream ();

    _out = new OutputStreamWriter (_con.openDataOutputStream ());

    String msg = "Welcome to customer \r\n";

    _out. Write (MSG);

    String r_msg = _in.readUTF ();

    this.add (new TextField ("read from sever:", r_msg));

    _out. Flush();

    _in. Close();

    _out. Close();

    _CON. Close();

    this.add (new TextField ("", "data has been changed"));

    }

    }

    Thanks for your help.

    You treat on the thread of events.

    You have the following code:

    UiApplication.getUiApplication () .invokeLater (new Runnable() {}

    public void run() {}

    try {

    open_connection();

    .....

    Now invokeLater essentially tells the operating system that the associated executable must be run on the event Thread.  You need start a separate Thread.  Extend this Thread, add your code in the run() method, and then start the Thread with start(). (not run()).  Then you must run the networking of processing on a separate Thread.

    This will cause you problems updating the user interface.  Take a look at this help:

    http://supportforums.BlackBerry.com/T5/Java-development/update-a-screen-on-the-main-event-thread/TA-...

    Printing, this means that invokelater a separate Thread is a common misconception.  I recommend you to look at this:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    In addition, I recommend that you take a look at the socketDemo which must be included as a sample-, otherwise you can find it on github:

    https://github.com/BlackBerry/JDE-samples

  • How to change a div in a document when you used a template (Dreamweaver CS5)

    I have created a template, which is used by several pages, but you want to change the < div id = 'content-full-width' > <!-InstanceBeginEditable name = 'content'-> to a page to enlarge the content area.

    If I want to make a div id = 'new_content' and then make my page < div id = "new_content" > <!-name = 'content'-> InstanceBeginEditable

    How can I do that shows a page that is based on a main template?

    TKS

    Deb

    Thanks Murray.  I tried to fix the template to allow me to change the div tag, everything I tried screwed up the model (I am still relatively new to this).

    Stupid me, I had the editable inside the div tag, so he restrained me.  I saw another post (although I have searched and searched), after I posted my question with the same type of question and noted the necessary editable tag outside of the div.

    I tried again, and it worked this time.

    Before:

    After:

    .

    Thanks again for your help.

    Deb

  • Hey DW, please use my new Fireworks CS5, not my old FW CS4

    When you edit a PNG image of inside a htm page DW4, how can I say open the PNG in my new Fireworks instead of my old? (FW5 trial, want to get rid of FW4)

    Thank you.

    I don't have CS4, but if it's at all like CS3 in this regard, so you want to choose Edit-> preferences-> File Types / editors and adjust the file targeted to open the png file type.  It should be a field where you specify the path to the file on your machine, which includes a browse option to find.

    I don't know if there will be no compatibility issues with trying to use a newer version of fireworks by an older version of DW.

  • When you use crop tool in CS5 I lose all the information of the photo. Any suggestions?

    Hi all

    I have problems with the crop tool in CS5. All picture information are ignored rather than just the croped the picture part leaving me an image of 0 bites. Can anyone suggest a solution?

    Check all the settings in the farm tool options bar.

    If that does not show anything (like a bad resolution value), plan to reset the Photoshop preferences.

  • How can I get rid of the big circle when you use the eyedropper in CS5?

    It is very annoying, coming from CS3, which is not that. I can't understand how to stop it. It is probably simple.

Maybe you are looking for