Doing a http call in Indesign CS4

In moving our code to CS4, we saw problems with the use of the webaccesslib.dll to use the HttpConnection object, which we use extensively. The Javascript Tools Guide has this statement:
"FTP and HTTP are no longer directly supported in the ExtendScript API. The low-level Socket object is still available for implementing TCP connections."
We wanted to confirm that the ability to do an http call directly with the HttpConnection object has been removed from CS4 before I start writing code to mimic the functionality with the Socket object. Has anyone already been through this pain of writing it, or figured out a way to make the old HttpConnection object (which has been invaluable to us) work?
Thanks
Ken

Hi Ken,
I wrote such a thing for CS3, and made the source available as part of the downloadable material to one of my podcasts:
http://rorohiko.blogspot.com/2008/07/lightning-brain-podcast-click-here-to.html
Untested in CS4 - haven't had time to do that yet, but I think there's a good chance it will work as-is.
There's a set of routines based around the low-level socket that implement a subset of HTTP; should be fairly easy to adjust to different situations (e.g. using POST instead of GET). I use these myself in projects that use SOAP to query web services from InDesign.
Have a look and feel free to use them if they are what you're looking for...

Similar Messages

  • [InDesign CS4] - Spell() function does not get called in CHLinguistic Sample

    Hi,
    I am investigating CHLinguistic Sample plug-in on Windows InDesign CS4. I noted that in InDesign CS4 a new function is added FindError.
    I always get call to function FindError() but I don't get calls to other functions like Spell(), IsCorrectGrammer().
    Has Adobe changed something in InDesign CS4.
    Any help will be appreciated.
    Thanks and Regards,
    Ian Wood

    Hi Marko,
    I have SDK Build Verison 352 September 2008. With this SDK it has CHLinguistic sample. It has the following info in readme file under Known Issues -
    The CHLinguistic sample does not dynamically redraw misspelled
    words after adding them to the user dictionary.
    I have the old SDK. You have SDK Build Version 352 October 2008, so you must be correct.
    I will download the latest SDK and post my results on the forum.
    Regards,
    Ian Wood

  • Does anyone know what Error: 5 mean when trying to open up InDesign CS4

    Does anyone know what Error: 5 mean when trying to open up InDesign CS4?

    Opening the program, or opening a file?

  • Trying to load my Photoshop CS3 onto new Mac Book Air. Why does it ask for InDesign CS4 part way through?

    Loading my Photoshop CS3 onto new Mac Book Air. Why does it ask for InDesign CS4 part way through?  I have a CS5.5 disc. Will suffice?

    that doesn't make sense.  you will only be prompted for earlier adobe versions when installing a latter upgrade version.
    double check your versions.
    also, you might want to clean your computer before retrying to install, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Why does my InDesign CS4 keep crashing -- ever since I upgraded my system????

    Why does my InDesign CS4 keep crashing -- ever since I upgraded my system????

    Becuae there is a bug in either the update or in Apple's App store server.

  • I recently bought and installed Adobe InDesign CS4. It does not have some fonts I want, e.g., Papyru

         I recently bought and installed Adobe InDesign CS4. It does not have some fonts I want, e.g., Papyrus Bold. I copied it from the Windows XP Fonts folder into the InDesign Font folder, which, for starters, was empty (even though when I open the InDesign application its inherent fonts are available). I have gone to online Help and tried different things, but I still cannot get Papyrus Bold when I open my file.
         Where are the InDesign fonts stored, if not in the InDesign Fonts folder?
         How can I make the fonts that are in my Windows XP to be available in InDesign?
         Thank you.
         Andrew

         Peter,
         Thanks for your quick reply.
         I don’t see why there should be a problem with the Papyrus font I copied from Windows, since it works just fine in Word.
    It is listed in the Windows XP/Fonts folder as Open Type, although in brackets beneath it has “True Type.”
         Note: the Adobe InDesign Fonts folder was empty when I first viewed it (except for my attempted copies of Papyrus and a couple of Lucidas). Where are the inherent InDesign fonts stored, if not there?
         Thanks again for your attention.
         Andy (ColorsAce)

  • What does Error: 5 mean when trying to open Indesign CS4?

    What does Error: 5 mean when trying to open Indesign CS4?

    It means that you need to reinstall the program....
    Mylenium

  • Cannot add ruler guides in InDesign CS4. What am I doing wrong?

    I'm trying out InDesign CS4 on a trial basis. I have the Web Design CS3 suite and have no problem making ruler guides by clicking and dragging from a ruler. I'm wondering if there is a conflict between CS3 and CS4 products. I can't select the Selection or Direct Selection Tools by clicking on them. They do become active, however, if I use the keyboard shortcuts (V) or (A).  According to the 1-on-1 tutorial, my Selection Tool cursor should change from black to white when the guide snaps to an existing margin. My cursor turns white as soon as a click on the ruler. When I drag, nothing happens. When I release the mouse button, the cursor turns black again. With the Direct Selection Tool, the cursor remains white throughout the entire attempt. Nothing happens in either situation. This is a simple, getting started doc. There is only one layer, I'm in Normal view, and I have created margins and columns that are visible. I can select Baseline and Document grids and they work. Is this a bug or am I missing something?
    P.S. I've tried to attach the InDesign file (840 kb), but got the message, "The content type of this attachment is not allowed." Sheesh!

    You were right in your original assessment; it was a corrupt installation. There were several other things not functioning as designed. I just came upon the guides problem first. BTW, I found that if I expanded the document to where it covered the entire screen, the guides were visible. Unfortunately, the tool box and menus are covered, so that was a bit inconvenient. Just wanted to say thanks and tip my hat to you and the others who responded by offering help.
    One last thing, when I posted my original posting, I tried to attach the InDesign doc file I was working on and got a pop-up window saying that these type of files are not allowed. Am I to understand that you can't post InDesign files on the Adobe forum?

  • Does Indesign CS4 recognize missing fonts in links?

    Could anyone tell me if Indesign CS4 (or any version of Indesign) will recognize missing fonts used in a linked image? We have a customer that is using Indesign CS4 they have linked images from photoshop (no fonts in the photoshop images) and .eps files that were created using Easy Barcode Creator. Indesign is not seeing that the font is missing from the eps file (easy barcode reader), nor is there an error when exporting a PDF or print a PS. Preflight in Indesign doesn't detect this either. If I open the eps in Illustrator then I get a font missing error. I don't want to open all the files (supporting links) to find out if I have missing fonts. Any suggestions would be appreciated. Thanks

    I've been playing with this a little, and I get what you see, too with .eps files. Find font will list the fonts used in the links, but for the most part woen't tell you if they are missing (seems to know they're missing in placed .indd files, though). Not a whole lot of help, but at least it puts the list out front where you can see the fonts, and check to see what doesn't look familiar.
    Maybe the scripting guys have some clever ideas.

  • Indesign CS4 will not launch in Windows Vista

    Indesign CS4 will not launch but all other CS4 programs will in Windows Vista, has been worked perfectly up until mid february, I have spent two weeks dealing with Adobe support, and finally I ran “Windows Installer Clean Up” and restarted as requested on phone call to adobe today, then ran “WinCS4Cleanupscript” which inform me that it was clean (or words to that effect) and restarted. Did new install of CS4, at registration I noticed that the Reg Form was pre filled and with my preferences which was a bit strange. After all that Indesign still does not launch but is running. Please can anyone help.

    This is the earlier thread http://forums.adobe.com/message/2621367#2621367
    I think the onus is on Rapport to sort its software to prevent it interfering with other applications, and there is a post in that thread that indicates that Rapport is both aware of the problem and is working to overcome it.
    I would hope that Adobe itself would have picked up this problem by at least monitoring this forum, but other than adding it to the knowledgebase for its technical support, which I don't expect is an overnight thing to do, I can't see what else it would be expected to do.
    Perhaps if anyone from Adobe is monitoring this problem they could chime in here and let us know what the position is. I strongly suspect that Trusteer may have been the reason I couldn't get InDesign to run under Windows 7, and so I rolled the whole shooting match back to XP. I am planning to reinstall W7 with the knowledge that I may have to toggle Trusteer on and off to run InDesign, but it would be helpful to have some assurance from either party that a fix is on its way.
    In the previous thread the Rapport response implied there was reference to the problem on its FAQ page. If there is I can't find it.
    k

  • InDesign CS4 / CS5 missing JavaScript Socket() object?

    If I do
    var mySocketObject = new Socket();
    socket.open("mywebsite.com:80", "BINARY")
    in Photoshop, it creates a socket object called mySocketObject, which is not null and opens the socket correctly.
    If I do the same thing in InDesign CS5, the same command fails.
    I know this works in InDesign CS3, so what does one need to do to make Socket() work in InDesign CS4/5?

    Adobe's own Javascript Tools Guide is your friend for snippets like these.
    This is from the CS4 guide, but it should work for CS5 as well:
    reply = "";
    conn = new Socket; // access Adobe’s home page
    if (conn.open ("www.adobe.com:80"))
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();

  • InDesign CS4: Missing Toolbars/Menus

    InDesign CS4: Missing Toolbars/Menus on MacBook Pro
    The program has been working fine for more than year, but all of a sudden the menus and toolbars have disappeared and I can't find a way to turn them back on. The program is USELESS without them since you can't do anything.
    Everything is  turned on (visible) under Edit > Menus... but when you're working in the actual program, NOTHING!
    When opening .indd files in InDesign I get a missing plug-ins error (LILO.APLN) and then this warning appears: The following hyphenation services are not installed on this system - Proximity (English: USA). Uh, watchu talkin' bout InDesign?
        1    I've tried uninstalling and reinstalling the software
        2    I've tried reseting my preferences (http://forums.adobe.com/message/2339388)
        4    I've tried installing the latest update (6.0.6)
        5    Keyboard shortcuts do not work to restore the menus
        6    I changed the screen resolution to see if the toolbars were hiding of screen...
              and guess what? They weren't!
    I don't believe it is a problem with the permissions since there is only one user account on this computer and it is an administrator account. No changes have been made to the user profiles since the machine was first set up!
    This sounded EXACTLY like the problem I am having (http://indesignsecrets.com/rebuilding-indesign-preferences.php), but the solution (download the 6.0.4 patch) is not going to fix things for me ~ if 6.0.6 didn't clear it up, 6.0.4 sure as hell ain't gonna do it
    Oh, and I'm a total novice when it come to troubleshooting (I don't have a f*cking clue what I'm doing and have only gotten this far thanks to my limited ability to Google -- hooray for opposable thumbs!... also, I tried calling Adobe tech support and I couldn't understand a single word of what that guy was saying... the only thing that came out clear was "you're gonna have to pay for help or seek it out in the forums").
    So if you've got any advise that might help solve my InDesign issues, please explain it as you would to a child... seriously
    THANKS!
    Lauren

    I read through the thread you suggested, but since I'm not computer-savvy enough to match up the Windows based advise with my MAC, I  went straight for the cleaner tool option. I wiped CS4 from my computer, and with hope in my heart I reinstalled the entire suite. As the progress bar neared completion, rainbows exploded across the sky, children laughed and angels got their wings... but as soon as I opened InDesign the whole world went to sh*t again. The toolbars are still MIA. This is CRAZY... they were there last week. No major changes have ocurred that would suddenely make the program stop working... save for the fact that someone has obviously placed a gypsy curse on me. WTF!

  • Adobe InDesign CS4 Debug WIN Installation

    I need to port an InDesign CS3 plugin to InDesign CS4. In order to do that I've installed the Adobe InDesign CS4 Debug WIN but when I'm trying to start the application I receive the following error message in German: "Diese Anwendung konnte nicht gestartet werden, weil die Anwendungskonfiguration nicht korrekt ist. Zur Problembehebung sollten Sie die Anwendung neu installieren.". In english this should mean something like "This application has failed to start because the application configuration is incorrect. Try to reinstall the application.".
    The box I've tried installing on has visual studio C++ 2005 SP1 and InDesign CS3 Debug already installed (which works fine). I've looked through the requirements in the "InDesign® CS4 Read Me" and couldn't find anything that I'm missing.
    Any ideas?
    Thanks in advance.

    Hi Folks,
    ID CS4 Debug and ID CS3 Debug can be installed on the same system. The likely reason that the CS4 version is giving that error is because the CS4 version needs some Visual Studio 2005 SP1 DLLs that aren't installed on the computer.
    I believe that there are a couple of ways to fix this. One is to install Visual Studio 2005 SP1 (the recommended setup for CS4 plug-in development). When you install SP1 the DLLs needed by ID CS4 Debug will be installed. The other way, I think, is to not SP1, but install the release version of ID CS4 on your system. I understand that the ID CS4 Release version installer will install the DLLs needed by the debug version.
    However, if you use VS2005 (no SP1 installed) for CS4 plug-in development you will not be using the recommended development environment for CS4. But if you install SP1, and you want to develop plug-ins for CS3, you will not be using the recommended development environment for CS3 plug-in development. Go figure.
    Please note that once you install VS2005 SP1, any plug-ins that you compile will be looking for the SP1 version of the C/C++ Runtime DLLs when the plug-in is launched. The needed DLLs will be on your development system, so everything will seem fine when you test your CS3 plug-ins on your development computer. But when the plug-in is launched on a machine without the SP1 DLLs installed, the plug-in will not run.
    I'm not sure of the best way to deal with this (I'm mainly a Mac guy), but there was a thread here entitled
    Visual Studio 2005 SP1 about this issue a while back. This thread was partially deleted due to a forum software problem, and one of the ideas that was mentioned was lost from the message thread. Below are the useful (IMHO) missing messages (sent to me by Dirk Becker), who follows the forum using email.
    [Ugh! I told Dirk I would write up a Wiki entry for this, but work happened and I haven't gotten to this yet. :-( ]
    =========
    MISSING MESSAGES FROM THE THREAD: "[IDCS3 WIN] Visual Studio 2005 SP1"
    =========
    FROM: Eugenio Andres
    Hi Jim,
    From your original error message, the problem is most likely with the installation of the C/C++ SP1 runtime DLL on the machine that does not have the compiler. It's not so simple nowadays as copying over the DLLs, because Microsoft invented the side-by-side system, that allows having several versions of the same file on one machine.
    Your options are installing the runtime on each machine (a package for that is available from Microsoft Download) or changing your project to the static runtime ("Multithreaded" instead of "Multithreaded DLL"). I always use static linking in plugins with no problems, although Adobe specifies dynamic in their instructions, but you avoid these "DLL hell" problems.
    Regards,
    Eugenio Andres - www.ExpertosInformaticos.com
    =====
    =====
    FROM: Jim Birkenseer
    Hi Eugenio,
    Thanks for the information.
    So, are you saying that I simply have to go into my Plug-In's property page in VS2005 SP1 and change the C/C++ Code Generation from Multi-threaded DLL (/MD) to Multi-threaded (/MT) and rebuild the project? What are the downsides of doing this--or are there any?
    <...SNIP...>
    -- Jim
    =========
    =========
    FROM: Eugenio Andres
    Hi Jim,
    You're welcome.
    Yes, that project change should do it. The difference is that with the "DLL" version, your plugin loads the C/C++ runtime shared library (DLL) at runtime and calls it for any needed functions (like strcpy, malloc, etc.). Without the "DLL", the linker puts the C/C++ runtime code directly into your plugin and you don't need the C/C++ runtime SP1 DLL (the error you're getting is because your plugin required the DLL and it's not found on that machine).
    The C++ SP1 runtime shared library is different from the C++ non-SP1 library InDesign uses. In this new Windows "side-by-side" scheme, both can live together.
    If you use the exact same C/C++ runtime that Adobe uses, then that library is physically shared and it allows to do some "risky" things as e.g. allocating memory in one module (e.g. InDesign) and freeing it in another (e.g. your plugin). But this is usually not recommended and I don't think Adobe is doing it (but then it's only my impression from the code structure).
    Anyhow, from the moment you use the SP1 compiler, you're not sharing the runtime any more with InDesign, so it doesn't matter if you compile "MultiThreaded" instead of "MultiThreaded DLL". The difference between these is the size of the plugin and the easyness of distribution, and without DLL you miss possible "automatic" updates of the C++ runtime DLL (because the C/C++ runtime code is embedded in your plugin), but lately new versions of the C/C++ runtime become "different" DLLs, as you can see, so that's not so relevant any more - or if it's critical, you can always recompile your plugin and redistribute if needed.
    You can find a brief description of SP1 in
    http://msdn2.microsoft.com/en-us/vstudio/aa718695.aspx
    It looks like minor non-breaking changes to me, but one never knows...
    Cheers,
    Eugenio Andres - www.ExpertosInformaticos.com

  • You can't open the application "Adobe InDesign CS4" because it is not supported on this architecture"

    A day or two ago I went through installing Adobe InDesign CS4 on Leopard OS X.5.8.  After what appears to be a successful installati
    on, in launching InDesign CS4 the message " You can't open the application "Adobe InDesign CS4" because it is not supported on this
    architecture" comes up".  Calling in to support and speaking with the agent who read through previous posts, suggested to me that I
    should try the same fix that has been suggested when I ran across an error when installing Adobe InDesign CS4 on another separate ha
    rd drive externally connected to this computer running Snow Leopard OS X.6.1 for the error reading: "Damaged &/or incomplete install
    ation" when launching afterwards.  The support technician told me to first delete with the uninstall Adobe InDesign CS4, InDesign.
    Following this I am told to run the CS4 Cleanup Utility.  I restart the computer each and every time after running each of the utili
    ties.  Now I am told to install InDesign as a trial version from the DVD and after installation to go ahead & enter the serial numbe
    r.  When launching InDesign CS4 after installation got back the same error as before: "You can't open the application "Adobe InDesig
    n CS4" because it is not supported on this architecture" comes up".  Followed KB404711 article and no success.  What else can be don
    e to fix this issue?
    This morning contacted Adobe Support regarding this response:
    After having a detailed reserach on your issue i acme to the conclusion
    that the problem you are having is not related to Adobe software but its
    in fact related to your MAC version ( OSX-5.8). While reseraching your
    issue i came across
    to many forums where a lot of postings were about the similar error but
    with different products the only comon thing was all the Errors were
    with Mac machine , also when you check the system requirements  for
    Adobe Indesign Cs4
    by going to the following link
    http://www.adobe.com/products/indesign/systemreqs/?promoid=DRHXE  you
    will find the Mac OS version supported are from Mac OS X
    v10.4.11–10.5.4. but we do support Snow Leoprad , so i would like
    to advise to you to either contact your system manufacturer or upgrade
    to Snow Leopard ( mac os x 10.6)
    I have been told that my case is being sent to Level 2 agents and that it can take 24-48 hours for a response.  In the meantime I decided to see what the Support Forums can do for me.  Until then I am down.  Thanks for the help.

    In the application folder there is a folder 'Adobe InDesign CS4' within which there is just the application file. I would expect there should be more file there??
    I've un-installed and installed again - still the same.
    Even downloaded the dmg again and done thwe whole thing over again.

  • InDesign CS4 version 6.0.6. and Mac OS 10.6.8

    iMac 24 inch, OS 10.6.8, InDesign CS4 version 6.0.6. Since upgrading to 10.6.8, I can no longer print double sided. The problem does not exist with any other software I have Adobe or not. I have a HP LaserJet 2300dn printer with the most current driver installed connected to ethernet. The printer acts as if it is printing a double sided page, but what should be one page comes out as two pages.
    Is there a solution to the problem?
    Thanka
    Gary

    There are reports of printing problems for some people (not me) under 10.6.8.
    Here's a report on the issues with links:
    http://www.tidbits.com/article/12292

Maybe you are looking for

  • Delivery date changed 4 times-called to ask what is going on and then best buy cancelled order

    I ordered a 55 inch aquos  with free ROKU stick for $599.00 on Sept. 22   (removed per forum guidlelines) and got a confirmed delivery of Sept. 26.  Unfortunately, I received a call in the morning of the Sept. 26 and was told that delivery was pushed

  • CUPC - "Phone Error. Could not place call because you have no audio device or sound card."

    Periodically throughout the day, CUPC will not make or receive calls, but instead presents a dialog box with the message "Phone Error. Could not place call because you have no audio device or sound card."  See attachment. Signing out of and back into

  • Need help with VBA to control PDF fields

    Hi, I am attempting to use Excel VBA to control Acrobat but cannot find any documentation on the syntax to modify fields within the PDF form. I am able to commnicate with Acrobat using CreateObject ( "AcroExch.App") and point to the AVDocs, PDDocs, P

  • Unable to open .ai files from excel-word-access hyperlinks

    Hi to all. I'm new in the forum and  the illustrator. I face an issue I have create an excel file with a  description and a hyperlink. With this way the user is able to open all the  file that was able to open in only one excel. So far everything is

  • Add new line after Signature

    Hi, I have idoc to file scenarion. The first record is coming from script. The other data is coming from idoc. After signature have sholud be a new blank line. But the second row is coming near to signature.  As follows: <SIGNATURE=GNDPLU.GDF><VERSIO