JS for images selected in the LINKS panel

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

If there is exactly one link selected, then you can use this technique to find out about the link:
try {app.menuActions.item("Go To Link").invoke(); } catch(e) {};
That will select the linked item and so you can then examine the selection to get the information you want.
If you're using a non-English version of InDesign, you'll need to localize that string.
Dave

Similar Messages

  • When I click "Edit Original" in the links panel it opens MICROSOFT PAINT!

    When I click "Edit Original" with a jpeg selected in the links panel it opens Microsoft Paint! In Windows (7) the file association is Windows Picture Viewer (NOT Paint!) and in Bridge it is associated with Photoshop CC. In InDesign we have the option of choosing which program to edit linked files with. In Illustrator we are stuck with the astounding Paint! Why?? 17 versions and this still bugs me!

    Thanks Mylenium.
    I know how to change the default program associated with an extension (I would like to keep picture viewer as the default open option for JPG) but I don't know how I change the EDIT association (currently Paint for JPG) in Win 7.
    And it would be much more useful if AI could just give us the option of setting defaults (as Bridge does) OR AI could just use Bridge's defaults OR give us an "Open with" option as in Indesign. So many possible solutions, I've feature-requested this on occasions since CS1, it works in other Adobe apps, so I can only think Adobe is wilfully ignoring this issue for Irritator.

  • Images aren't being displayed in the links panel

    I am trying to locate the source file for images in an InDesign CS6 document, so that I can use them within another project (Muse). I had planned to use the links panel to see the path for each image. However, only a few of my graphics/images are being displayed in the links panel. Most images are not showing up at all (I would expect them to show as 'missing' in the links panel if they had been moved or deleted). How can InDesign display the image in InDesign but not recognize the image as an asset in the Links panel? Could this be due to the way the image was imported? If so is there any way to export the image or save the image out of InDesign?
    Help!

    Did you put those images into the ID document? Did someone else?
    Is it possible that someone copied and pasted those images from Photoshop (or another application) into ID. If so, that's the problem.
    I'm not too sure you can retrieve the images at their proper resolutions, though.

  • Cannot separate images from the link panel

    Hi Sir,
    I need advice and tip to ungroup or separate the individual images from the link panel. I cannot select specific image from the rectangle frame. I have screen captured as belew. Any help is greatly appreciated.

    Hi Peter,
    I am using CS6, I managed to select each image using the Direct Selection Tool. However, I noticed that there is a "Link Icon" on the top left corner. Why does it appear?

  • Any way to export several columns from the Links panel?

    This was originally posted to the InDesign forum, was suggested there might be a script that could achieve this?
    Working on a textbook with hundreds of illustrations. Each Chapter has  up to 100.  Need to get several columns of data (file name and page #  that it appears on) exported from the Links Panel (in sorted order) so  they can be dropped into a spreadsheet. I am using TextWrangler which  will dump out all the filenames in a folder, but it sorts alphabetically  and I really want them sorted by the Page Numbers where they appear.

    This script creates a CSV file on the desktop that you can import in Excel. The file name is the same as the name of active indesign document.
    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;

  • Art used in ID documents used to display in the links panel. Now links is empty.

    Photoshop art used in ID documents used to display in the links panel in IN_CS6 on a mac. Now links is empty.
    Where did the links list go???

    Are you sure the art is linked and not pasted? Can you select it, right click and choose edit original? If you can and the links panel is empty you probably need to trash the prefs: Replace Your Preferences

  • Using the Links panel | Visual Design CS4 | Adobe TV

    Customize the Links panel to suit your needs. Add the categories you want and then sort the links by category.
    http://adobe.ly/wgVJk9

    Excellent video. I am always watching Scale factor at links panel whenever scaling images because sometimes can happen to forget to hold Shift while scaling images. Two different scaling percentages means something wrong and image is distorted.

  • Getting Pages Selected in the Pages Panel

    How do I get which pages are selected in the pages panel? (the one on the side)
    Is this possible with actionscript? What about the OLE objects?
    running windows XP, 32 bit

    sadface. Where do i go to meake feeature requests?
    The reason I wanted this is when scanning, sometimes you get booklets you have to scan. instead of cutting them, I could just undo staples, have people select them, and then on hotkey extract the images, split them, and re insert them into the pdf in the correct order
    All i needed was an easy way to get the users selection. Getting them from the pages pane would have made it smoothe and flow with acrobat

  • How do I delete a link in the link panel?

    I have moved an item out of the links folder on a project I am working on in IDCC and when opening the project it tells me, rightly, that a link is missing. When I go to the links panel I see the alert that the linked item is missing, which I know, and I want to delete the link in the links panel but see no option to do this, also the delete key does nothing when the item is highlighted, and right-click (^ click) offer no delete choice either. How can I delete this item in the links panel?
    TIA,
    Ken

    Amazing how the hot weather has affected me. Thank You Peter - so logical - I missed it while thinking of 15 other elements and a hurried deadline...

  • How to Display the Image Rather Than the Link of a Dreamweaver Record From the Database

    I wanted the image rather than the link to appear on my page. The link is from my database which is
    imported from a .csv file.

    You use the link as the value of the src attribute of an <img> tag:
    <img src="<?php echo $row_getDetails['image_link']; ?>" alt="My image">

  • Can Adobe Collage be used for images smaller than the standard 1200 by 789?

    Can Adobe Collage be used for images smaller than the standard 1200 by 789?

    Hi,
    * Photoshop Touch does have very good text capabilites.
    * For opening the Collage as an Artwork (Merged layer) in Photoshop Touch, you just need to upload the Collage file to Creative cloud and import it directly into Photoshop Touch.
    But if you are looking to preserve all the layers of the Collage file, you should download the Collage file as PSD from Creative Clould and import it in Photoshop Touch as layers.
    * Collage does have canvas scalability, you can extend up the canvas on all the four directions. But i think in you case you are looking for having specific custom sizes of the canvas, which is not currently available in Collage. Currently you cannot shrink the canvas below the default canvas size.
    Hope this is helpful. Please do revert back if you have more queries.
    -Subbi

  • 1024 x 768 or 1024 x 748 for images to fill the page?

    As I understand, there is 20px for wifi/time/battery bar...
    Is that 20px always used up? Or is it available for image depending whether the user has his or her hand there?
    I'm trying to figure out what size to make my images so they fill the page.
    Should it be 1024 x 768 or 1024 x 748 ?

    it is always there in ibooks in landscape, when in portrait it is on the side (which is now the top) so the live area is 1004 x 768
    I think all Apple apps have this bar and it is also there when on the home page (it is slightly transparent)
    Not to be confused with the black title bar that pops up when going to the library, this is different.
    I would go ahead and do 1024 x 768, incase you use the image full size in both portrait and landscape
    Sort of depends on the layout of the book.
    If you know you are not going to use the image full screen in portrait, then you could use the 1024 x 748
    having the extra 20 px isn't a problem, it will just get cropped off.

  • Extending Screens for Multi-Select in the LightSwitch HTML Client

    Hi i
    read Mike Droney's article of 
    Extending Screens for Multi-Select in the LightSwitch HTML Client
    But i just want to understand the code, so what is the ‘__isSelected’ property? from where does it come?
    why does the contentItem.value.details have an ‘__isSelected’ property?
    is the value of the contentItem not the screen?
    and also how can i implement the ‘Can Execute Code’ only if one or more check boxes are checked?
    Thanks  

    But i just want to understand the code, so what is the ‘__isSelected’ property? from where does it come?
    why does the contentItem.value.details have an ‘__isSelected’ property?
    is the value of the contentItem not the screen?
    and also how can i implement the ‘Can Execute Code’ only if one or more check boxes are checked?
    The '__isSelected' property is a private member of the class msls.ContentItem related to the backing data for the selected item.  That is to say, it would be a private member if JavaScript actually had encapsulation and information hiding like a typical
    object-oriented language. I like to reference David Herman's description from his book
    Effective JavaScript:
    Often, JavaScript programmers resort to coding conventions rather than any absolute enforcement mechanism for private properties. For example, some programmers use naming conventions such as prefixing or suffixing private property names with an underscore
    character (_). This does nothing to enforce information hiding, but it suggests to well-behaved users of an object that they should not inspect or modify the property so that the object can remain free to change its implementation.
    ...which means that it's generally not recommended to directly get or set backing data properties like __isSelected, instead working with the public property 'selectedItem', although it may work fine in certain cases like this one.
    To make _canExecute fire only when an item in the list is selected to enable a button method, try:
    return (screen.Contacts.selectedItem !== null);

  • Why don't my WORD files show up in the LINKS panel?

    Sometimes my text files don't link when I place them. Why?

    Since you can edit and create text in InDesign, but you can’t edit or create imported art, text links are treated differently than graphic links. By default they do not show as links in the Links panel. Go to File > Preferences > File Handling and turn on Create Links When Placing Text and Spreadsheet Files. Now future placed text files will show in the Links panel. The only way to get already placed files to show is to place them again.

  • I created an apple id (free app) there is a mail i received for verification i tap the link,its verified but i cant download any free app why???

    Dear apple
    i created an apple id (free app) there is a mail i received for verification i tap the link,its verified but i cant download any free app why???

    Did you create a brand new account or change an existing Apple ID?

Maybe you are looking for

  • IPhoto faces gone since upgrade to 9.6.1

    Hi, Something strange is happening here. Since I upgraded iPhoto to 9.6.1, the Faces feature doesn't work anymore. When I click Faces in the left sidebar (which shows all faces' names and a thumbnail), well, all the names appear but with a black squa

  • Html db backup question?

    Is HTMLDB appllication on http://htmldb.oracle.com backed up daily? Or is it the responsibility of the developer to backup the data. I was able to create a export of the application and the tables easily. However I couldn't find anything that would e

  • How to Apply GP India Packages in peoplesoft

    Hi All, Can you please tell me how to apply GP INDIA packages (Rule & Non-Rule) in detail? Thanks in Advance. Regards, Siva Prasad B

  • Service Requests and Collection Plans

    I'm experimenting here just a bit... and I wondered. Is it possible to map a Service Request Type to a Collection Plan. Seems logical functionality to me, but I couldn't find it anywhere...

  • Audit Vault & Apex - ANONYMOUS user recorded rather than Apex end user

    Hi, We have Audit Vault 10.2.3 & Apex 3.2 Audit Vault stores the name of the database user when a table is updated through SQL*Plus etc as expected. Problem is through Apex and insert to db table using simple form on table the user ANONYMOUS is recor