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;
}
//--------------------------------------------------------------------------------------------------------------

Tags: InDesign

Similar Questions

  • I tried exporting a PDF score in word format, but it seems incomplete. Is there any way to export the music score PDF to word correctly?

    I tried exporting a PDF score in word format, but it seems incomplete. Is there any way to export the music score PDF to word correctly?

    Very, very unlikely, unless you export each page in the form of a simple graph, slats, words and everything. You ask too much, especially given that Word is not a music creation application.

  • Any way to update all items at the same time?

    Any way to update all items at the same time?

    is one by one, the only way to update?

    I have 68 articles up to 800 MB.

    Unfortunately, the team has not added an update all feature. I think that this is scheduled for February.

    If you have your folders and files properly configured with a sidecar.xml file, consider the deletion and re-creation of the folio.

  • What's the point of having several columns in the ORDER BY clause?

    DB version: 10 gr 2

    When you use the ORDER BY clause, the lines are always sorted by the first column in the ORDER BY clause. So, what's the point of having several columns in the ORDER BY clause (I always see this in production codes)?

    For the below SQLs' schema SCOTT, result sets are always classified according to the first column ename. When I added use asc and desc of employment, does not change the result set.
    SQL> select * from emp order by ename;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    
    14 rows selected.
    
    SQL> select * from emp order by ename, job;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    
    14 rows selected.
    
    SQL>  select * from emp order by ename, job desc;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    
    14 rows selected.

    Search in this example, you will see the difference

    SQL> create table test_order (name varchar2(10), surname varchar2(10), age number);
    
    Table created.
    
    SQL> insert into test_order values('Kamran','Agayev',26);
    
    1 row created.
    
    SQL> insert into test_order values('Kamran','Taghiyev',26);
    
    1 row created.
    
    SQL> insert into test_order values('John','Kevin',23);
    
    1 row created.
    
    SQL> select * from test_order;
    
    NAME       SURNAME           AGE
    ---------- ---------- ----------
    Kamran     Agayev             26
    Kamran     Taghiyev           26
    John       Kevin              23
    
    SQL> select * from test_order
      2  order by age;
    
    NAME       SURNAME           AGE
    ---------- ---------- ----------
    John       Kevin              23
    Kamran     Agayev             26
    Kamran     Taghiyev           26
    
    SQL> select * from test_order
      2  order by age asc, surname desc;
    
    NAME       SURNAME           AGE
    ---------- ---------- ----------
    John       Kevin              23
    Kamran     Taghiyev           26
    Kamran     Agayev             26
    
    SQL>
    

    When in the second query, I sorted out only for age, you saw it there two 26 years old Keita, there was first Agayev, then Taghiyev. But if I want to get the family names in descending order when there are two very old person, then I will add the second column in the order by clause

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • Best way to reset all controls on the front panel except one?

    Hello world

    I have an interesting problem, whereby I need to run successive tests using a test station which has several indicators on the front panel. At the end of each test, I need to reset all to default values, with the exception of a control (Test ID) who needs to keep his information - its value is used in an initialization status for test to ask for information from a database, so it can not be reset with the rest controls.

    I post all orders at a time using a reference ThisVI and VI Default Vals.Reinit All method, but this will obviously reset my control values (Test ID) as well. Any suggestions on how to keep properly or may store this information control while resetting all others. I can reset individually others but there is a little and more can be added as this system is developed.

    I don't really know what is the right way to proceed, and Labview has maybe one trick in his bag that I know to work around this problem.

    Thanks in advance for your suggestions,

    Alex

    Flank the node invoke with two nodes in the value property of the control to maintain the value. To the left we read as well as a right and the wires together. Connect three nodes with a thread of error to establish the order of execution.

    First reading place value on the wire, which is then written after the values have been reset to the default value.

  • How to select several objects on the layers panel in Illustrator CC

    I have a work of guge and I need to select a small group (about 10-100) of objects from 4000 bunk and then group objects ' em/split-to-layers for ease of use (this is an infographic of the human body for medical institute)

    There IS NO way by selecting in the Web because they are overlapping and sometimes not visible at all.

    in CS5 there was a function to select several objects to the icon selection Alt + click - move on the right in the Layers panel.

    Now the mode duplication towers - on when I try to run it.

    Then.

    Ho I select several object without having to click through thousands of them? (I need to drag-select)

    IM totally frustrated.

    As long there is no deliberately locked object, you can do the following:

    Drag on the lock column in the layer panel

    Object > unlock all (there is a shortcut for this)

    -> unlocked objects are selected

  • How can I rearrange the columns in the files Panel in Dreamweaver CC 20141?

    I just upgraded to Dreamweaver CC 20141, and I want to change the order of the columns in the files Panel. But I can't understand how to do this. Can anyone help?

    Thank you

    Kim

    You can also change the oder in which the columns are presented by editing your site definition (Advanced settings > file view columns).

  • customization of columns in the files Panel

    Hello

    Is it possible to customize the columns in the files Panel, I want to delete some of them such as modified

    Sincere greetings

    Yes, you can change the columns that are displayed and the order in which they appear. However, you must do this for each site individually. It is not a global preference.

    Access the Site > Manage Sites, select the site you want to change the settings of.

    In the Site configuration dialog box, expand advanced settings, and then select file view columns

  • 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

  • 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 can I remove a link in the links Panel?

    I moved an item out of the folder of links on a project that I train in IDCC and opening of the project he said, rightly, that a link is missing. When I go in the links Panel, I see the alert that the bound element is missing, that I know, and I want to remove the link in the links Panel, but do not see any option to do this, also the delete key does nothing when the item is highlighted and do a right-click (^ click) don't offer no delete choice either. How can I remove this item in the links Panel?

    TIA,

    Ken

    You must remove it from the page of the document where it was placed.

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

  • 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

Maybe you are looking for

  • Firefox crash reporter crashes into an endless loop

    I uninstalled all the firefox / aurora relies and deleted my profile. Then reinstalled firefox 30, 31 and 32 of Aurora. Each of them break at startup in an infinite loop. I suspect the TI guys maybe installed updates on my computer today that may be

  • Nothing new sound card

    I just installed a map his (DX PCI Express 7.1, driver version 6.12.8.1730, which says that my system is up to date) and now have no sound. I suspect a lack of connecting the power supply, even if I plugged in the power connector (the indicator light

  • How can I start my Flash DRIVE Toshiba Satellite m40x?

    Hello. How can I start my Flash DRIVE Toshiba Satellite m40x?In my BIOS is not be option - boot from usb. Help, please.

  • Since the upgrade to El field, when I launched mail it says library update and then seems to hang

    10.11 running on an iMac (2007) Since the upgrade, I can't start mail, it comes up with a dialog box saying "upgrade your library", but it just hangs, the progress bar does not move after hours. I force move to get rid of it. Any advice?  Thank you

  • Event: number of tracks of the same event?

    Hello world I'm working on a CCD acquire the system, and I developed the control software using a structure of the event. Each event controls a setting function for my system and place in fucnctions event timeout to get the status of my detector. Dat