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();

Similar Messages

  • 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.

  • Kerning/tracking difference between InDesign CS4 & CS5.5

    My department (editorial) has just upgraded to CS5.5.
    We're seeing differences in the way type is scaling between documents created in CS4 when opened in CS5.5.
    The font involved is Myriad Pro Black, part of our Adobe Myriad Pro family.
    If I save the CS5.5 doc back as an IDML and re-open it in CS4 everything is back to normal.
    I'm finding it difficult to compare the two to see whether it's point size, kerning or tracking because if I cut and paste a text box from 5.5 to 4 it pastes as an object, I'm guessing it pastes as PDF as it's seen as coming from another aplication.
    Is anyone else seeing differences in character widths or line lengths?
    This is potentially a major problem for us as we have a large amount of legacy material in previous issues an promotional documents that will need to be re-proofed every time an alt is made.

    Thanks Peter,
    What I'm looking at here in a sample file is a single line of 11 characters at 36pt which have increased in length by 2.2mm.
    Text in a regular and semi-bold weights of the same face are unaffected, body copy in tight text boxes has not re-flowed and lines are of identical length in both versions.
    The difference manifests itself with kerning set to optical on specific fonts of the same family. When set to metrics the variation disappears.
    So, whatever the cause, and yes, I understand that text composition calculations change accross versions and we'll have to live with it.
    What complicates the understanding of this is that, in the UK at least, I've found it impossible to buy fonts direct from Adobe because we don't have a US mainland registered credit card. Therefore we've had to buy them from Monotype in the UK as they're the registered Adobe font re-seller. We've found that font files supplied to Monotype by Adobe to re-sell have certain features disabled, even though the version numbers match, such as Opentype fractions (this has been confirmed by Monotype engineers) in InDesign and as a result our font set (Myriad is our main face) is a mixture of the Adobe Myriad Pro supplied with InDesign (to be able to use native fractions) and Monotype flavour Adobe Myriad Pro for the extended set. This raises doubt over whether it's InDesign or Indesign's interaction with mixed version fonts when anomalies occur for us.
    Thanks again for your prompt reply and assistance.

  • Indesign CS4, CS5.1, CS5.5 all crash when saving files

    Hi,
    One of our users is experiencing a crash when trying to save files in InDesign.  He has OS X 10.7.  This occurs in the CS4, 5.1, and 5.5 versions - all three versions he has installed on his computer.  We ran font finagler which has resolved issues for us before but it did not resolve the issue.  We also reset the preferences in each version using the keyboard shortcut.  It did not work either.
    I uploaded a crash log from CS5.5 to pastebin:
    http://pastebin.com/9MLThyPw
    Any help would be greatly appreciated.

    Looking at your crash report, Suitcase does not appear to be implicated.
    Instead, your crash is in this odd plugin:
    com.adobe.InDesign.Telescope.sdk
    Which appears to be in:
    0x17274000 - 0x17292ff3 +com.adobe.InDesign.Telescope.sdk (7.1.2 - ???) <97F7B6BF-280E-4A72-4820-09258E50379F> /Applications/Adobe InDesign CS5.5/*/Telescope.sdk
    I guess this is the North Plains TeleScope DAM system? Shame on them! They're not allowed to name their plugin "com.adobe.anything" if they're not Adobe!
    Anyhow, try removing the plugin. Assuming that fixes it, contact them.

  • Indesign CS4, CS5 Mac freezes/How can I get it to run?

    I have been using Indesign CS5 Mac version. When I open it, after I make a new document, the color wheel keeps spinning until I force-close the program or restart my machine. I have taken CS5 off of my system and reloaded it with the same conclusion. Because I needed to use Indesign, I loaded version CS4, but came up with the same exact problem: the color wheel spinning continuously right after I have opened a new document.
    Any suggestions?
    Julie

    see http://forums.adobe.com/message/4199358#4199358 for how to get reports that will help us help you.

  • Indesign CS4 Very Slow - can move objects easily anymore!

    We are running CS4 - Even the most simple files are difficult open.  When opened, it is hard to move objects or type any characters. All we get is the Apple pinwheel.  We are running OS x 10.5 with 4 GB of memory.  We dont know what to do-please advise.

    I use CS4, mostly InDesign and Photoshop. I recently upgraded my iMac from 1 GB to 3GB of RAM, and everything was awesomely fast. CS4 worked well. Then I updated my system from 10.6.1 to 10.6.2, and immediately both InDesign & Photoshop developed a pause approx. every 5 seconds. No matter what I’m doing within either program, no matter how large or small the file, no matter how many or few applications I have open, I still get the very same beachball-spinning pause with every little thing I try to do, always. It’s very frustrating, I am having a lot of trouble getting any work done. The performance is way worse with 3 GB RAM than it was with just 1!
    I am not having this problem with the rest of my applications within my system, such as Mail and Safari, and I haven't really noticed it with Acrobat. It does seem that the update caused this with CS4. I've tried a couple of things, such as zapping the PRAM and closing a bunch of fonts but nothing has made the slightest difference.
    Does anyone have any suggestions?
    Cissy

  • Ai CS4 & CS5: Can't move objects, huge memory usage. Tips?

    Okay guys this is my first post here, so bear with me.
    I'm just wondering if anyone can give guidance or refer me somewhere I can find a solution. I both CS4 and CS5 of Ai installed on my mac. Everything works just great, until I attempt to move an object. Something simple as a single line with freeze my system if I attempt to move it from one location to another.
    It is odd. I can scale/transform objects without any issue. Its just when I click an object to drag it to another location my system will freeze for about 5 seconds. The object won't move still. I opened up Activity Monitor and noticed my Memory usage sky rocketed as soon as I tried to move the object.
    Is there configurations for memory allocation in Illustrator like there is in photshop?
    (PS I have 3GB RAM and a 120GB HDD with 30GB free space, 2.0 Intel Core 2 processor, it's a 2007 Mac Mini)

    How big is the file? and is it complex if so then you simply do not have the resources. Also you might have a font cache issue.
    But I think the lack of resources.

  • Teacup Software CS4 & CS5 missing embedded barcode

    Has anyone used the barcode maker software plugin from TeaCup? In both CS4 and CS5 I receive a missing embedded graphic while exporting as a PDF. I usually fix it by resetting the barcode before making the PDF. It is really annoying and frustrating....any suggestions would be greatly appreciated!!

    I'm packaging the files for press. Then typically we make a PDF to send along with it...sometimes high or low resolution depending on the printer.
    I use the PC short cut to typically do this Ctrl + E
    Then it runs through any issues that might appear.
    It pops up with missing link. It then show a red question mark over the embedded barcode.
    To fix I usually reset the barcode. It works, but it is annoying and bothersome to do all the time.
    In CS3 we never had this problem. I upgraded to CS4 and it started. I work with 3 other designers who have the same issue with the plugin. I was hoping since CS5 was released that this might resolve any bug. But then 1 of our outside designers did upgrade and the bug is still  there.
    We are on XP windows platform. We use the entire creative suite. All of our machines are custom built by our IS department so all vary slightly, but we all still have the same issue. We share the multi seat license on the software so use the same files to load from. Our outside designer has his own download/license though and still has this issue. So I didn't know if it was a conflict within Adobe or the Teacup software???
    thank you!

  • InDesign CS4 is missing!

    Got a new macbook. Migrated everything from my imac. Lots of apps don't work, it's all a mess. I tried to clean it up, deleted stuff, and reintalled 10.7.
    Then I inserted the original Creative Suite CS4 Design Standard install CD, and InDesign is not even in the list of items to install! It doesn't show up at all, but photoshop and illustrator are fine. Help?

    Well if it isn't on the CD/DVD then just how did you install it in the first place? I only use PS and Lightroom but is Indesign included with the Standard version of any CS version. You may of bought it separate and should have either a DVD for it or the Download (Always SAVE Program Downloads) and if you downloaded it you should of gotten an Email with the registration code (Always make a Text of Word processing file of all your Program license coded and print it out to have a hard copy and save it to all the computer you own. I also have mine on my phone).
    Or simply you didn't have InDesign installed.

  • Bridge talk for InDesign CS4/CS5 js

    Hi,
    Have this code that opens file in Ph and resaves it in different format. In this case I need to adjust it to open pdf file in photoshop and set crop to media box. It works with pdf files as is, but if there is white space around artwork, it gets removed. How can I set it to open with media box:
    function ResaveInPS(myImagePath, myNewPath) {
         try {
               var myPsDoc = app.open(new File(myImagePath));
                 if (myPsDoc.mode == DocumentMode.CMYK) {
                        myPsDoc.changeMode(ChangeMode.RGB);
               var docName = myPsDoc.name;
              var myPNGSaveOptions = new PNGSaveOptions();
              myPNGSaveOptions.interlaced = false; // or true
              myPsDoc.saveAs(new File(myNewPath), myPNGSaveOptions, true);
              myPsDoc.close(SaveOptions.DONOTSAVECHANGES);     
         catch (err) {
              try {
                   app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
              catch (err) {}
    Thank you for your help.
    Yulia

    Hi Yulia,
    I adjusted the script:
    #target indesign
    var myDoc = app.activeDocument;
    var myDocPath = myDoc.filePath;
    var myLivePath = myDoc.filePath;
    var myFolder = new Folder(myLivePath);
    OpenFiles();
    UpdateAllOutdatedLinks();
    //~ myLink.editOriginal();
    //alert("Done");
    function OpenFiles(){
        var myFile= app.selection[0];
        try{
            if(myFile.isValid == true){}
        catch (e){
        alert ("Please choose PDF and rerun the script");
            exit();
        if(myFile.constructor.name == "PDF"){
            myLink = myFile.itemLink;
        else{if(myFile.constructor.name == "Rectangle"){
            myLink = myFile.graphics[0].itemLink;
        else{
            alert ("The artwork has to be PDF file. Please choose correct artwork and rerun the script");
            exit();
              if (myLink.name.toLowerCase().indexOf(".pdf") > -1){
                   var myImage = myLink.parent;
                   var myImagePath = myLink.filePath;
                   var myImageFile = new File(myImagePath);
                   var myNewPath =  myFolder.absoluteURI + "/" + GetFileNameOnly(myImageFile.name) + ".tif";
                   CreateBridgeTalkMessage(myImagePath, myNewPath);
                   Relink(myLink, myNewPath);
    function CreateBridgeTalkMessage(myImagePath, myNewPath) {
         var bt = new BridgeTalk();
         bt.target = "photoshop";
         var myScript = 'app.displayDialogs = DialogModes.NO;\r';
         myScript += 'try {\r';
         myScript += 'if ("' + myImagePath + '".match(/\.pdf$/) != null) {\r';
         myScript += '    var pdfOpenOptions = new PDFOpenOptions();\r';
         myScript += '    pdfOpenOptions.cropPage = CropToType.MEDIABOX;\r';
         myScript += '    pdfOpenOptions.resolution = 300;\r';
         myScript += '    pdfOpenOptions.usePageNumber = true;\r';
         myScript += '    var myPsDoc = app.open(new File("' + myImagePath  + '"), pdfOpenOptions);\r';     
         myScript += '}\r';
         myScript += 'else {\r';
         myScript += '    var myPsDoc = app.open(new File(myImagePath));\r';
         myScript += '}\r';
         myScript += 'if (myPsDoc.mode != DocumentMode.CMYK) {\r';
         myScript += '    myPsDoc.changeMode(ChangeMode.CMYK);\r';
         myScript += '}\r';
         myScript += 'myPsDoc.flatten();\r';
         myScript += 'var docName = myPsDoc.name;\r';
         myScript += 'var myTiffSaveOptions  = new TiffSaveOptions();\r';
         myScript += 'myTiffSaveOptions.alphaChannels = false;\r';
         myScript += 'myTiffSaveOptions.byteOrder = ByteOrder.MACOS;\r';
         myScript += 'myTiffSaveOptions.embedColorProfile = true;\r';
         myScript += 'myTiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;\r';
         myScript += 'myTiffSaveOptions.layers = true;\r';
         myScript += 'myTiffSaveOptions.spotColors = false;\r';
         myScript += 'myTiffSaveOptions.transparency = true;\r';
         myScript += 'myPsDoc.saveAs(new File("' + myNewPath + '"), myTiffSaveOptions);\r';
         myScript += 'myPsDoc.close(SaveOptions.DONOTSAVECHANGES);\r';
         myScript += '}\r';
         myScript += 'catch (err) {\r';
         myScript += '    try {\r';
         myScript += '        app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);\r';
         myScript += '    }\r';
         myScript += '    catch (err) {}\r';
         myScript += '}\r';
         myScript += 'app.displayDialogs = DialogModes.ALL;\r';
    //~      $.writeln(myScript);
         bt.onResult = function(resObj) {}
         bt.send(100);
    function ResaveInPS(myImagePath, myNewPath) {
        try {
                   if (myImagePath.match(/\.pdf$/) != null) {
                       var pdfOpenOptions = new PDFOpenOptions;
                       pdfOpenOptions.cropPage = CropToType.MEDIABOX;
                       pdfOpenOptions.resolution = 300;
                       pdfOpenOptions.usePageNumber = true;
              var myPsDoc = app.open(new File(myImagePath), pdfOpenOptions);
                if (myPsDoc.mode != DocumentMode.CMYK) {
                       myPsDoc.changeMode(ChangeMode.CMYK);
              myPsDoc.flatten(); // or layers false…
              var docName = myPsDoc.name;
             var myTiffSaveOptions  = new TiffSaveOptions();
             myTiffSaveOptions.alphaChannels = false;
              myTiffSaveOptions.byteOrder = ByteOrder.MACOS;
              myTiffSaveOptions.embedColorProfile = true;
              myTiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
              myTiffSaveOptions.layers = true; // Or false here…
              myTiffSaveOptions.spotColors = false;
              myTiffSaveOptions.transparency = true;
             myPsDoc.saveAs(new File(myNewPath), myTiffSaveOptions);
             myPsDoc.close(SaveOptions.DONOTSAVECHANGES);
        catch (err) {
             try {
                  app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
             catch (err) {}
    function Relink(myLink, myNewPath){
         var newFile = new File (myNewPath);
         if (newFile.exists) {
              var originalLinkFile = new File(myLink.filePath);
              myLink.relink(newFile);
              try { // for versions prior to 6.0.4
                   var myLink = myLink.update();
              catch(err) {}
    function UpdateAllOutdatedLinks() {
         for (var myCounter = myDoc.links.length-1; myCounter >= 0; myCounter--) {
              var myLink = myDoc.links[myCounter];
              if (myLink.status == LinkStatus.linkOutOfDate) {
                   myLink.update();
    function GetFileNameOnly(myFileName) {
         var myString = "";
         var myResult = myFileName.lastIndexOf(".");
         if (myResult == -1) {
              myString = myFileName;
         else {
              myString = myFileName.substr(0, myResult);
         return myString;
    Kasyan

  • Bridge talk for InDesign CS4/CS5

    Hi, I am looking for any documentation I can find for Bridge talk scripting. So far nothing comes with the search. Does anyone know any sources.
    Thank you very much.
    Yulia

    I wouldn't agree with Mark that the JavaScript Tools Guide contains all the necessary information. The description is scarce and obscure, the sample code contains typos which makes things more difficult.
    I suggest you to download Bridge SDK which contains a few
    excellent samples of using BridgeTalk. They all work and are well commented. So you can run these samples and read the JavaScript Tools Guide to understand how they work.
    I also recommend you to read this post.
    In my opinion BridgeTalk is a very powerful and useful feature but not many scripters venture to use it.
    Regards,
    Kasyan

  • Indesign CS4 links missing on document reopen

    I have several files that keep loosing their links every day. Links reside on same computer as layouts and are not being moved. I open, have to relink. They will stay linked for the day, but tomorrow I will have to go through the same process updating to folders. Is this a memory problem? There are a large number of images placed.
    This has happened before several times but now it is very aggrivating because I have to pdf proof revisions every day.
    Anybody got any thoughts?

    Folder layers:
    User
         Current Jobs
              Job Folders
                   Layout Folder
                   Links Folder
    I've had this happen with other jobs, but it wasn't that much of a nuisance because I wasn't making revisions and proofing back to client everyday. Unforttunately this time it will be about a 3 week project and its driving me nuts. I still appreciate any help, opinons, feedback. I will try moving it to my desktop later today when I'm working on it and post results tomorrow when I open again.... after 24 hours, will be the true test.
    Lizard

  • Search for, edit, and delete XML tag (Adobe InDesign Server CS5)

    Hi all,
    I'm working with Indesign Server CS5 and JavaScript, though having some trouble coming up with a solution to a problem...
    I need to build a JS script (called through SOAP) that will enable me to search an InDesign file for a given XML tag.
    Upon finding the XML tag, if the 'action' variable is set to delete, it should delete the tag and its contents.
    If the action is set to edit, it should change the contents of the tag to some user-specified content.
    The primary caveat is that the XML tag is variable, as is the XML structure of the InDesign file.
    Here's what I have in mind, in pseudocode:
    function findXMLTag(tag, action) {
         app.searchForTag(tag);
         if (tagIsFound) {
              if (action == "delete") {
                   tag.delete;
              } else if (action == "edit") {
                   tag.contents = "Updated content";
    Any help would be greatly appreciated!
    Thanks,
    Ben Kay

    'searchForTag' can be implemented as a recursive function.
    Recursion is defined like this: I thought, "I'll just search this forum for 'recursion'." The first post I found was one of my own, suggesting that the poster should search the forum for 'recursion'.
    Here is an example: find the XML Element [<email>]
    And another: Remove xml element using JS[CS3] (read carefully, as the OP got stuck on how to successfully remove an element and continue)
    And one, using XML Rules -- which I'm totally unfamiliar with, but may work for you: Changing Values in XML tags

  • AS: InDesign CS4: Missing links do not show path anymore?

    Hiya! Preparing to move to InDesign CS4, and opened a document where the links were missing. In CS2 with AS you could still get the old path to where the link was pointed to, but now if the link is missing AS returns "". ?? I can still get the file name, but that is fairly useless..
    I know the path is still retained somewhere, because the link pallet UI in InDesign shows path, and the path is there...
    Anyone have any ideas?
    >>
    id:25785,
    size:298164,
    asset URL:"",
    link xmp:link xmp of link id 25785 of image id 21318 of rectangle id 20575 of page id 20565 of spread id 6605 of document "AR09_1_006_006v4.indd" of application "Adobe InDesign CS4",
    asset ID:"",
    asset etag:"",
    edited:false,
    needed:true,
    link type:"JPEG",
    parent:image id 21318 of rectangle id 20575 of page id 20565 of spread id 6605 of document "AR09_1_006_006v4.indd" of application "Adobe InDesign CS4",
    file path:"", --in cs2, the path would still be here...
    index:1,
    name:"01_77509_TR_927.jpg",
    object reference:link id 25785 of image id 21318 of rectangle id 20575 of page id 20565 of spread id 6605 of document "AR09_1_006_006v4.indd" of application "Adobe InDesign CS4",
    label:"",
    editing state:editing unknown,
    version state:version unknown,
    date:date "Saturday, March 14, 2009 5:12:37 PM",
    status:link missing

    CS2:
    id:11759,
    size:260181,
    asset URL:"",
    link xmp:link xmp of link id 11759 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS2",
    asset ID:"",
    asset etag:"",
    edited:false,
    needed:true,
    link type:"JPEG",
    stock state:link is not stock,
    parent:image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS2",
    file path:"Graphics1:Cat Apparel:AR09_FallPrev:All Images:JPG SELECTS:3_12-3_13:77508:77508_DG_297.jpg",
    index:1,
    name:"77508_DG_297.jpg",
    object reference:link id 11759 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS2",
    label:"",
    editing state:editing nowhere,
    version state:no resource,
    date:date "Friday, March 13, 2009 5:16:21 PM",
    status:link missing
    CS4:
    id:12636,
    size:260181,
    asset URL:"",
    link xmp:link xmp of link id 12636 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS4",
    asset ID:"",
    asset etag:"",
    edited:false,
    needed:true,
    link type:"JPEG",
    parent:image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS4",
    file path:"",
    index:1,
    name:"77508_DG_297.jpg",
    object reference:link id 12636 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS4",
    label:"",
    editing state:editing unknown,
    version state:version unknown,
    date:date "Friday, March 13, 2009 5:16:21 PM",
    status:link missing
    So - to summarize....
    CS4: file path:"", status:link missing
    CS2: file path:"Graphics1:Cat Apparel:AR09_FallPrev:All Images:JPG SELECTS:3_12-3_13:77508:77508_DG_297.jpg", status:link missing
    Ack.....

  • Image text is missing in InDesign CS4

    Hi everybody,
    I am using InDesign CS4 with MAC OS X 10.5.8. I encountered a problem that the Text is missing in the eps image, when imported on InDesign document. Refer below screenshot.
    I have used “Times New Roman” Type1 font in InDesign document. And for images I have used the same “Times New Roman” as OTF font. Refer below screenshots.
    Type 1 fonts used in InDesign:
    Open Type Font used in Images:
    Here, I caught one more finding. If I save the image as Adobe Postscript as “Language Level 2”, I don’t have any text missing issue in InDesign document. But, if I save the image as “Language Level 3”, I found this missing text issue in the document. Refer below screenshots.
    Could anyone hlep me what the exact issue. Any help is much appreciated!!

    Yes Bob. This new thread was raised by me to explain the issue in detail.
    Further to my analysis, I found that when I load the job fonts in “Applications/Adobe InDesign CS5/Fonts”, we got this text missing issue. And the same job fonts, when I load in “Users/<user_name>/Library/Fonts”, it showing correct.
    Any thoughts?

Maybe you are looking for