JS for images selected in the LINKS Panel

Hi, anyone know of a JS to get the images properties e.g.name as selected (highlighted) in the LINKS Panel?

Thank you.

If there is exactly a link selected, you can use this technique for the link:

try {app.menuActions.item ("go to Link") .invoke () ;} catch (e) {};}

Who will choose the bound element and so you can review the selection to get the information you want.

If you use a non-English version of InDesign, you will need to locate this string.

Dave

Tags: InDesign

Similar Questions

  • Photo, what are the criteria for images selected from the collections of photos?

    With Photo on my Mac when I'm in the view "of the years', I see all my photos. When I switch to 'Moments' I see all the photos, especially older. When I go to "collections", then I self pictures? What are the criteria for images selected in 'collections' of photos? Thank you

    You should see all the photos in the Moments, the years, Collections, unless you have the "Summarize" option enabled in Photos > Preferences > General.  Then some pictures will be omitted, but the rules are not documented.

  • By clicking on the image does not show in the links Panel

    Has this changed?

    When I click on an image (within a framework of) the selected image used to be highlighted in the links Panel, so you can easily identify what image you are using.

    This does not happen on my version (v11.4.0.90). I guess this or has this already happened?

    Try restarting indesign.

  • Links NOT alert missing images and not in the links Panel

    Don't know if this is a consequence to move my files and account across to a new Mac Pro and re-configuration of hard disk locations where files image linked, but... I'm working on a document which lasted from systems - come finally to an end, and I write PDF printing and found this problem.

    InDesign CC 9.2.1 running on the Mavericks 10.9.2 NOT indicate images missing links in the links Panel. In fact it is not showing the image on the page is still in the document - it does not appear in the links Panel, although I can see the image on the page.

    I noticed this when there is evidence verifying a high-resolution PDF print, and the picture looked at low resolution. weird, but should not.  I went back to InDesign file to query the image, and found when I clicked it, it has not been highlighted in the links Panel - where I active warnings, IPR and other columns so I can quickly check problems. It was not at all here. InDesign seems to be blind to the image.  When I right click on images of rogue on the page I do not get the "Graphics" section at the bottom of the drop-down list as I do with images okay.  I guess because InDesign doesn't even know it's there?

    Basically, the image is visible on the page, but InDesign doesn't know...  What gives?  I'll have to go through a long document now by clicking on each image to verify it is showing in the links Panel, and then re-release of links each image that seems to be completely lost as much as InDesign is concerned not even knowing it's there.

    I have "reset all warning dialogs. Made no difference.

    I worry about what other files will do it for me now and how much time will be lost carefully checking validity of each image.

    John Mensinger wrote:

    Oh, and... drag & drop = place, so if indeed your apparent no paired images were pulled, there may be something wrong with that.

    Drag and drop from the Finder, Windows Explorer or bridge are all equivalent to the file > Place..., but drag it from Photoshop or another application, it would be the same as Edit > paste.

  • How should I get the images to open in their initial applications to the links Panel?

    Before moving on to my new Mac, I was able to open files in their original applications when I clicked on the edit the Original button at the bottom of the links Panel. But now everything - TIFF, EPS, and PDF - opens in preview mode before because it's the default application to open files of any link and it's really frustrating. How can I change so I can open Photoshop files in Photoshop, Illustrator EPS and PDF files in Acrobat. I know I can always go to the drop down menu to choose Edit with..., and then choose an application but I'm so used to click the button modify the Original.

    In the graph select Finder, command prompt I (file > Get Info) open with: desired application and select "replace all".

  • Could not apply the background image available to the Group Panel in demand for space

    I tried to apply the background image available to the Group Panel class css as well as with the style inline like below

    background-image: url('/content/conn/intra-dot-content/path/mywebcenter/lever/backgroundmain.jpg'); background-position: center; background-repeat: repeat-y;

    The background image is not displayed. but it works with the layout of the border Panel. Does work around the issue

    You can style the layout of the group with combination adf skinning and css as a performer below

    . My-in-head-container {}

    Background: # 4 7800 url(/portal/images/website/header.png) high horizontally at the Center;

    position: relative;

    z index: 600;

    }

    {AF | panelGroupLayout.Content.Banner}

    margin-top: 0px;

    padding: 0;

    border: none;

    margin-bottom: 0px;

    padding-bottom: 15px; / * to fix the space between the header & content - min * /.

    background-color: transparent; / * to fix the space between the header & content - min * /.

    position: relative;

    overflow: hidden;

    }

    Then, you can see the style only

    styleClass = "my-in-head-container banniΦre" rendered = "#{! composerContext.inEditMode}" id = "pt_pgl2" > "

  • How to navigate through all of the links in the links Panel in the user interface?

    Hello world

    I wonder how I can browse all the links in the links Panel, programmatically. I have a document where the resources present in this Panel are not available using the ILinkManager. He tells me there are no links in the document when using ILinkManager-> GetLinkCount().

    These resources are not more related to any element on the page. These are images which are not more related to what it is. Right-click on it and click on 'join the link' shows nothing in the document (the same operation on a resource that is linked to a graphic image focuses on it). I can manually re-edit the link, but nothing more.

    In the user interface, there is no way to delete (not menu 'remove' or whatever).

    I think I "created" them as follows: during the creation of the story, the story is tagged. Then I attach a picture frame and label it in the history. Then I remove the frame (s) containing the history, so that its history xml is "not placed" (see kXMLUnplaceCmdBoss). At this time (if I'm not mistaken), I created these inaccessible resources. I see the xml story unplaced in the structure of the document that remains not placed XML (in the backup store) and resources in the links Panel.

    History unplaced XML CAN be removed manually, but not these inaccessible resources. However, there must be a way, as InDesign can display them.

    How to reach these 'lost' resources and delete them, by programming?

    Independent of your real problem, I would first try the equivalent in the user interface.

    Preparation:

    To simplify things and make them visible, working on a traditional tale - not the backup store.

    The story should be labeled and will remain so.

    Add content as complicated as you want.

    Some content preceding and behind it must survive.

    Your content must be labeled - surrounded by a single label.

    Text-Select this unique tag (see the invisible etc for the right selection).

    Remove the text selection.

    See: Tags are gone, content text disappeared, the images have disappeared.

    Now find a way to perform this deletion text programmatically. Without specific code XML - operation but a simple text, InDesign will do the rest.

    Finally, use the code that results on the backup store.

  • ID CC 2015 links not showing in the links Panel

    In the two last weeks showed no link in the links Panel in any document. The Panel is just completely empty.

    Things I've tried:

    Trashing preferences. (Yes. Twice.) Restart the system, etc.

    Saving a document as IDML - has no effect.  On the already placed or newly placed images.

    All the images are placed not glued. I tried to place keyboard cmd to place pictures or by drag-and - drop from the finder or bridge - makes no DIF. In addition, if the images on my hard drive or on a server does not appear either differentiate.

    Far as I can tell I have no extensions corrupt or add ons to the system. (Although I don't honestly know what to look for).

    The fonts are all OTF and not those of eccentric, I'm under Extensis Suitcase, although it was never a question of the end.

    Opening the exact same file IDML in ID 2014 shows the links in the links Panel as per normal. I am running the same plugin Multi-Find/Change in both versions of ID so it can't be that.

    It must be something with CC 2015.

    Any ideas?

    The first time you used the manual method of replacement prefs. Please try, as I asked earlier, using the shortcut method.

    On a Mac, you should be able to hold the 4 keys down while you start InDesign, you don't need the speed.

  • The location of the link is no longer present in the links Panel

    I used to be able to move my mouse over the name of the file in the links Panel and a little pop up would come with the location of the image. It seems that it works, which is frustrating, because it would give me a description longer where was the link. Which shows the link information in the Panel is too few characters to really find in my server. Any ideas why it does not work? I have CC Indesign on Mac 10.10.4 2015.

    It works for me with the same configuration.

    Try to restore your InDesign preferences:

    Garbage, replace, reset or restore the application's preferences

  • Is it possible to print or extract the links Panel?

    Someone know how to print the information in the links Panel or export it to its own document for review?  I use InDesign CS4.

    Sorry to be so long getting back to you. I said that it was a basic script! All links in the doc, I wanted to analyze were image files - none of the vector graphics. There is therefore no provision for these. Graphic vector (and in PDF, for that matter) have no resolution, therefore there script errors. I'll try to post a revised, including the scaling (i.e. the size of the image relative to its original size in %, regardless of the setting, in that it is).

    // LinksReport.jsx
    // An Indesign CS3 JavaScript by Loic_aigon November 2008
    // Amended 14 July 2009
    // This script scans links in a document and produces a spreadsheet
    // (CSV) giving the document name, the linked file name, the page on which
    // it is found, its dimensions, effective PPI and scaling.
    // Links in rotated frames may give odd results.
    // See http://forums.adobe.com/thread/288626
    //
    if(app.documents.length!=0)
    {
     if(app.activeDocument.links.length!=0)
     {
      var s = "DocName, LinkName, Page, ImgWidth, ImgHeight, X-Res, Y-Res, X-Scale, Y-Scale";
      var doc = app.activeDocument;
      var doc_name = doc.name;
      var shortdocname = doc_name.split(".indd")[0];
      var lks = doc.links;
      var link_name; var pg_nb; var img_width; var img_height;
      var x_res; var y_res; var x_scale; var y_scale; var lk; var feedAline;
      var myarr = [];
      var tempstring ="";
      for(i=0; i
    

    See if it works for you.

    Noel

  • Any way to export several columns in the links Panel?

    This was posted on the InDesign forum, suggested that there could be a script that could achieve this?

    Work on a manual with hundreds of illustrations. Each chapter has up to 100.  Need to get more than one column of data (file name and # it appears on the page) exported from the links Panel (in a sorted order) so they can be recessed into a spreadsheet. I use TextWrangler which will clear out all the names of files in a folder, but it sorts alphabetically and I really want them sort by Page numbers where they appear.

    This script creates a CSV file on the desktop that you can import into Excel. The name of the file is the same as the name of the indesign document active.

    Kasyan

    var scriptName = "Generate list of links";
    if (app.documents.length == 0) ErrorExit("No documents are open. Please open a document and try again.");
    
    var page, allGraphics, graphic;
    var text = "File name;Page\r";
    var doc = app.activeDocument;
    
    for (var i = 0; i < doc.pages.length; i++) {
         page = doc.pages[i];
         allGraphics = page.allGraphics;
         for (var k = 0; k < allGraphics.length; k++) {
              graphic = allGraphics[k];
              if (graphic.itemLink != null) {
                   text += graphic.itemLink.name + ";" + page.name +"\r";
              }
         }
    }
    
    WriteToFile(text);
    
    //-------------------------------------- FUNCTIONS ---------------------------------------------
    function WriteToFile(text) {
         var theFile = new File("~/Desktop/" + GetFileNameOnly(doc.name) + ".csv");
         theFile.open("w");
         theFile.write(text);
         theFile.close();
    }
    //--------------------------------------------------------------------------------------------------------------
    function ErrorExit(error, icon) {
         alert(error, scriptName, icon);
         exit();
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetFileNameOnly(myFileName) {
         var myString = "";
         var myResult = myFileName.lastIndexOf(".");
         if (myResult == -1) {
              myString = myFileName;
         }
         else {
              myString = myFileName.substr(0, myResult);
         }
         return myString;
    }
    //--------------------------------------------------------------------------------------------------------------
    
  • When I click with the right button of the mouse on videos from facebook it shows no options for me to copy the link and etc.

    When I click with the right button of the mouse on videos from facebook it shows no options for me to copy the link and etc. It only shows the parameters for the flash player. How can I fix?

    You can find the URL of the thumbnail by following these steps:
    In the context menu, choose {inspect element}.
    Now, you can see the URL in the source down (perhaps you click the small arrow to the left of the line of seledted firstly to show).

  • Can I programmatically change the default property to create for all elements of the front panel?

    Can I programmatically change the default property to create for all elements of the front panel?

    I need to make the logout button, when click on, takes care of all the default values of my fron Panel.

    There is no way to programmatically call the functionality of an editor 'Use default' or 'Load Default'. To do it yourself, you will need to write your default values for each control explicitly in the diagram, when the user press the logout button.

  • How can I find the URL codes for images stored in the Windows Photo Gallery?

    How can I find the URL codes for images stored in the Windows Photo Gallery?

    If you want the path to the current record
    right click to the picture location of a photo...
    and choose... Properties / General tab.
    Location displays the path.

    If you have a photo saved on your hard drive
    car that was downloaded on the net...
    the original URL will appear not in
    the file.

  • How will I know which pages are selected in the Pages panel?

    I have a JavaScript that exports each page of the separate document as PDF file. I would do the same thing, but with a script that exports only the selected pages in the Pages table. Is there a way to tell which pages are selected in the Pages panel? Thanks in advance.

    -Rick

    I asked a similar question here: information on signs in Javascript

    The answer, @Harbs, was not. You could do your own dialog box to allow users to select pages, but it doesn't seem to be possible to integrate with the existing this way Committee.

Maybe you are looking for