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;

Similar Messages

  • Is there any way to get my reminders (from the new iPhone app) to sync with something on my laptop (Mail, iCal, some other desktop app)?

    Is there any way to get my reminders (from the new iPhone app) to sync with something on my laptop (Mail, iCal, some other desktop app)?

    Yes, if you have iCloud set up on your phone and computer, then reminders will be synced through iCal.

  • Is there any way to buy tv shows from the uk iTunes when I live in Ireland?

    is there any way to buy tv shows from the uk iTunes when I live in Ireland?

    And according to iTunes / Help...
    The iTunes Store may not be available in all countries or regions, and iTunes Store content may vary by country or region.

  • I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again?  I stupidly synced the wrong one.

    I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage when I thought I was syncing correctly I wasn't so I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again? 

    Have you not got a backup of your content on, for example, external drives ? If not then you could have a look to see if any of the utilities mentioned in this old post still exist and work : https://discussions.apple.com/message/11014893?messageID=11014893#11014893

  • I upgraded to Ios5 and have lost my contacts and other app profiles - is there any way to get them back from the backup taken before the IOS5 process started?

    I upgraded to IOS5 and have lost my contacts and other app profiles - is there any way to get them back from the backup taken before the IOS5 process started?

    Thanks but have tried that - When I try to restore I get a -50 error and into a loop of taking another back up.  I took a copy of the back up before the IOS upgrade and have it stored on my desk top but I cannot get Itunes to restore to that back up
    Any ideas how I can do this?

  • Is there any way to execute process chain from the portal?

    Hello,
    Is there any way to execute process chain from the portal? I dont want to link process chain with any of report. I want to have a button in some of portal folders. User presses the button and it executes the process chain.
    I was thinking about to create a fake planning cube, aggregation level and planning function. I call FM within the Fox planning function that runs the process chain. But it should be done within the report.
    Any ideas?
    Thanks a lot in advance!

    Hi.
    I want to have a button in some of portal folders
    You mean that you want to use some link in EP ?
    Regards.

  • I have an 06' macbook and I just bought an 07' macbook.. The 06' has os x 10.6 but the 07' has 10.5.. I no longer have the disk for snow leopard. Is there ANY way to get snow leopard from the old computer to the other without having to buy it again?

    I have an 06' macbook and I just bought an 07' macbook.. The 06' has os x 10.6 but the 07' has 10.5.. I no longer have the disk for snow leopard. Is there ANY way to get snow leopard from the old computer to the other without having to buy it again?

    Technical issues aside, there's still a legal issue.
    Neither 2006 nor 2007 MacBooks shipped with Snow Leopard 'factory' installed. OS X 10.6 Snow Leopard became available in September 2009. So you purchased and installed a Snow Leopard upgrade disc on the 2007 system at some point.
    If your Snow Leopard upgrade was a single-user copy, then legally, you need to purchase another one for the second computer. If your Snow Leopard upgrade was a Family Pack 5-user license, then you're good to go.
    http://store.apple.com/us/question/answers/product/MC574Z/A?pqid=QTUXD7AF4YU9FJD YUTDPCKYKUDDDXKHTK
    If you have an active MobileMe account, Apple was giving away a single-user upgrade copy of Snow Leopard for a limited time, and you should have received an email with a link, or been offered the opportunity when you signed in to your MobileMe account on the web:
    http://www.macrumors.com/2012/04/24/free-snow-leopard-discs-for-mobileme-users-n ow-arriving/
    Worst case, single-user Snow Leopard upgrade discs are $29 retail, direct from Apple. I'd hate to have two computers and no OS installation CD's for whatever version I'm currently using.

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

  • Is there any way to delete text messages from the external screen of an LG EnV3?

    The internal screen of my phone doesn't work, so I've been texting from the external key pad. But my inbox has gotten full and I can't receive texts anymore. Is there any way to delete texts using only the external screen of the EnV3?

    It was awhile ago and I'm not totally sure, but I think this was discussed and the conclusion was that you can't delete texts using the external screen of the Env3. **Edit  (Found one thread: http://community.vzw.com/t5/Messaging-Text-Picture-IM-etc/No-option-to-delete-text-messages-from-front-of-LG-enV3/m-p/43042#M1684 )  It came up in one other thread that I could find and the solution was to use the internal, and similar steps were given - the only difference was using the OK for Menu and #2 for Messages, rather than the left soft key for Messages.  vWhatever works... 
    What you CAN do, is open the flip, left soft key (which is the Messages menu), and there are several options - these are the text messaging ones -
    1. New Message
    2. Inbox (#)
    3. Sent (#)
    4 Drafts (#)
    Press the right soft key (options) and your choices are:
    1.Erase Inbox
    2.Erase Sent
    3.Erase Drafts
    4.Erase All
    If you choose Erase All, then OK - it will erase all except unread messages, and locked messages. If you choose any of the numbers, then hit OK, it will erase ALL in that category, read or not, so I would choose Option 4 to erase all but the unread.
    HTH, and post back if you have further questions...

  • Is there a way to drag video only from the Project Panel ??

    As the questions states.
    Can you do this from the Project Panel similar to how you can in the preview Panel ??

    If you deactivate your source patching on your timeline for all audio tracks (the square patch on the left of the that says A1,A2, etc) It should let you drag in only the video portion of the footage. Just tested it and it works.
    Scott

  • Any way to reformat an 8320 from the Desktop?

    I have an issue where I think something accidentially got deleted (I think the folder for BBM but not the BBM app) and now all I am seeing on my screen is a blank yellow circle at the bottom of my screen that I can move back and forth on the bottom of my screen (where 5 app/menue options noromally would be) with the track ball.  I can't access the camera function with the camera button on the side of the phone & only menue option I can access is the phone menue for making a call.  The row of app/menue options at the bottom of the screen are gone & when I click on the BB button, it takes away the yellow circle and just leaves the screen completely blank (incl the opaque strip at the bottom of the screen).  When I click the arrow beside the track ball, it puts that blank yellow circle back up at the bottom of the screen with the opaque strip at the bottom.
    Wondering if there is anyway to reformat the BB from the desktop or some way from the phone with out any phone icons showing up.  I tried powercycling (removing the battery for several minutes and then rebooting it) & that didn't help.  Just wondering what I can do to try to fix it.  Even called my cell provider and they tried resetting it from their end as I have the BB social network plan through FIDO.  Any help would be appreciated!

    I have found a partial solution to the issue.
    What I did was through desktop manager, checked for firmware update. It said there wasn't one, so I selected the option to see available firmware. I reinstalled the firmware that was already on it.  (The most recent & only FW that was listed)
    I still can't get any icons showing up on the main screen of my BB (the screen where it usually shows 5 icons) and on that screen it still just has the blank yellow circle that I can move back and forth across the bottom of that screen. 
    However if I now click on the BB button, it does take me to the second screen where all of my icons are now showing where they weren't before.  I just can't figure out how to get any of the icons to the main screen as it seems as though the "move" option isn't working on my phone anymore.  Can anyone help me with that?

  • Any way to generate trace report from the TKPROF formatted trace file?

    As titled.
    Is there any automatically way to make a report on SQL tuning report from the TKPROF formatted trace file(or from the dynamic performance views)
    Paul

    Dave,
    That's what report queries are for, take a look at shared components. Walk through the create report query wizard, and on the final page, you'll get a URL that you can use to integrate this with your page. You'll find the same URL when editing your report query afterwards.
    Alternatively, suppose you already have you report page, but don't want to always go there, you can just copy that report region print link (reference my answer to your previous question), and make that the target of a branch or from another page.
    Regards,
    Marc

  • Any way to find lost data from the xml file?

    Is there any way I can retrieve lost metadata from my mp3’s? I have had 9 months worth deleted, the mps’s are still there but I’ve lost playlists and date added info etc. from the xml file. There are old restores from 9 months ago and now, (the iTunes librarys stored in history are from 9 months ago) the library I currently have has 5 songs ive added this week, and everything from over 9 months ago.
    thanks,
    guy

    I have experienced the EXACT same problem...  can't find a solution but am searching madly.  Please post what you discover, if anything.

  • Any way to export videos and preserve the original creation date?

    I recently shot video using an NEX-5N and AVCHD as the format. Since Aperture cannot playback this format, I converted the videos using Handbrake to mp4 (H.264), and then used A Better Finder to change the creation date of the converted file back to the same date as the original file.
    Importing this converted file into Aperture works great, and the imported file shows the correct metadata of the original creation date, not the date of the conversion.
    But when exporting this file from Aperture, it seems like Aperture does not embed the date as metadata, and thus the only date associated with the exported video is the file-system date attached to the file, which will of course be the date of the export. 
    I assume this problem applies to ANY video imported into Aperture, not just those that have been converted.
    Does anyone have a method for exporting video and having the original creation date remain?  This is obviously a problem when exporting videos one-by-one, but would be a bigger problem if I ever wanted to export my entire video library from Aperture into another program...all the video files would have the same date!
    Any feedback would be greatly appreciated!

    EXIF data and video files is even more of a gray area then EXIF data and stills.
    I don't do much video in Aperture so I'll take your word for it that the data isn;t imbedded into the file. In that case the best I can see is to create a custom export preset and  include the Image Date in the filename. Not great but you at least have the data and you might be able to have a script use the date from the filename and somehow add it back into the file.

  • Is there any way to remove my name from the profil...

    Is there any way to remove or prevent my profile from appearing in the profile search directory? I'm so tired of ALL the unwanted contact requests. Yeah I know I don't have to add them but this shouldnt even be a problem in the first place. If I want to add someone to add me I'll give them my skype name.

    Hi, Phnxbane, and welcome to the Community,
    You may certainly remove all profile data by leaving those settings as "blank" or "not specified."  I find the easiest way to do this is to open the profile settings from within the Skype "client" software.
    Removing/deleting an account name from the Skype search directory closes the account.  More details about this can be found here: 'Can I delete my Skype account?' 
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for

  • HP Pavilion dv1000

    Hi All,         I purchased  a HP Pavilion dv 1000 in 2005  I only used it for just over 3 weeks,  Then I got transfered  to Houston Tx Where I remained for over 6 years, but before I left the UK I was having problems with my  HP dv1000  befo

  • Soap fault, cannot find the dispatch method

    I deploy the HelloService example from "The Java EE 5 Tutorial For Sun Java System Application Server Platform Edition 9, chapter 1" to Sun Java System Application Server Platform Edition 9.0 Beta (build b32g), I tested it and it works find but when

  • Using adapter from MUVO for Ze

    Hello, It's maybe an easy question for some of you. But I have a MUVO switching adapter with output 5V - ,5A Can I use this adapter to charge my ZEN V mp3 player? What is the output from the Zen Power adapter? Thanks in advance.

  • Illustrator CS4 keeps quitting unexpectedly!!

    Hello geniuses!! We need your help!! We're graphic designers and our Illustrator CS4 keeps quitting unexpectedly when: > We try to go to print from Illustrator > Working on files over approx. 600MB (Also, it's taking about 5mins to open a 667MB Illus

  • Add on actions

    Hi all. I loaded florabelle actions into PSE 13 - exactly how they told me - NOW, all my prior effects and graphics are gone from PSE.  No bevels...nothing.  What happened?  Can someone please help me figure out how to get PSE 13 back to where it was