Get referenced pages of every pageReference in Index

Hi there!
I'm working on a script that attempts to review all page references on each topic of an index in order to remove duplicates and build page ranges...
So far I get the referenceType for each pageReference, but it only returns the 'referenceType' and not the current page as the Indesign 8 Object Model says:
PageReferenceType.CURRENT_PAGE  (Read Only)
Data Type: number , Value: 1668444263
Adobe InDesign CS6 (8.0) Object Model
The page on which the index entry is located.
The followin script write in console each topic's name and its references (as 1668444263 if is of type CURRENT_PAGE), and I would like to get the real current page number...
Any help really appreciated!!
var index = app.documents[0].indexes[0];
for (i = 0; i < index.topics.length ; i++)
    $.write("Topic: " + index.topics[i].name + "\n");
        for (t = 0; t < index.topics[i].pageReferences.length ; t++)
            var pRef = index.topics[i].pageReferences[t].pageReferenceType;
            $.write(pRef + "\n");

Well... The script I'm trying to build kinda do the same of Kahrel's but in ID's own index, not the one generated. Mostly because I'm editing the index constantly for revision and at the same time editing the body text and it feels creepy to 'clean' those entries in that generated script and keep ID's index 'dirty'.
The really weird thing I'm facing right now is that ID's 'book' option is not clear enough, and so far I've found that every document in a book has it's own index and somehow ID shares its topics and entries so that you can view the total index while working in any document of the book [although it takes its time to refresh…]. In a scripting point of view... you cannot get all entries across all book's documents, and that make entries processing a tough job... scriptingly speaking...
For now I'm trying to assign key-labels so that the topics and their entries are easily retrieved and processed avoiding as many loops as possible…
If u've found of know about any other way for working with indexes on books, please share and spare my head hitting the wall at nights…

Similar Messages

  • Why do I get a page break every time I hit return?

    I can't find a solution anywhere.

    OSX 10.8.3 I am new to Mac and my Macbook Pro 13" and Pages are new (a few months) I added Handbrake and Final Cut Pro along with Keynote but the system still worked fine before and after these installs. I install updates when I get the notification and have done no other changes to this machine.

  • I keep getting this pop-up every few minutes: "This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?" I'm sick of it!!! How can I get rid of it???

    Duplicate of [/questions/860865]
    Question
    I keep getting this pop-up every few minutes: "This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?" I'm sick of it!!! How can I get rid of it???

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    <br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • When I closed out of yahoo email, get a blank page on every tab if any are opened. I have to exit out & restart firefox . It does not happen w/any other browser.

    When I sign off on yahoo email. I get a blank page on every tab if any are opened. I have to exit out & restart firefox . It does not happen w/any other browser. I have no malware or viruses. Please advise.

    Actually, it's not obvious & common sense would dictate that users' bookmarks would not be left stuck to random computers even once they've logged out of the account. No one wants that if it's a public work computer or if they're traveling & use an Internet cafe. As I am not the only one who has noticed this issue or had bookmarks disappear/be deleted, in addition, common sense would indicate it's not really a very good system. And carrying around a flashdrive to run Firefox off of it is a good solution? Really? Just curious why a useful feature such as being able to login & use your preferences & bookmarks & then logging out removes your preferences when you're gone hasn't been developed. Yahoo keeps my preferences when I logout (it's called My Yahoo!). Maybe a My Firefox or My Chrome solution could be developed.

  • I just updated to 9.0.1 and now I get 4 tabs opening every time. (Welcome to Firefox, Mozilla Firefox Start Page, Plugin Installed & The Personas Interactive Theme) I can not stop them from opening.

    I just updated to 9.0.1 and now I get 4 tabs opening every time. (Welcome to Firefox, Mozilla Firefox Start Page, Plugin Installed & The Personas Interactive Theme) I can not stop them from opening. Please advise.

    See these articles for some suggestions:
    *https://support.mozilla.org/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved

  • Why do I get a page "Index of / "

    Why do I get a page named "Index of / " with a list of all my links, when I type my URL in a Browser?  I named my home page index.html, but the browsers insist that I add /index.html to the end of the URL.  I have another website where I don't have this problem.  Please make suggestions.
    Thanks,
    Tony

    Contact your web host and ask them what your domain name home page should be named.
    Most hosts designate the domain name home page as index.(htm, html, php, asp...)
    Although a few use home.(htm, html, php, asp...).
    It's also possible that you have more than one index or home page in your root.  If so, delete the duplicate.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Need 3 pages from a report of 1 page at every run

    Hi Friends,
    I have developed a report which is an Invoice. Every invoice will be 1 page only. Now what i need is when ever the user will run the report, the report will give 3 pages (same page 2 & 3,i.e. copy of page 1) as a set of invoices, with the headings as:
    Page 1: Original for buyer
    Page 2: Original for consignee
    Page 3: Self Copy
    I also want to display these messages page-wise on the report.
    Now, The problem is how can I get 3 pages from a report of 1 page everytime.
    Thanks in advance,
    Ankur

    select nr, your_present_report_select_columns
    from
    (select 1 nr from dual
    union
    select 2 nr from dual
    union
    select 3 nr from dual
    ) n
    ,( your actual report select) a
    This should improve performance, I think...
    Try and see. The same about grouping
    Message was edited by:
    BEDE

  • How can I export to Text and/or CSV format and get correct page info?

    I am using CRVS2010 to upgrade an application from CRXI RDC to .Net.  When at runtime I generate the report and export to Text or CharacterSeparatedValues my page footers show Page -1 of 1.  Using the CRXI RDC, I see the correct page info in the footers.
    When I export to Text, I get the Page -1 of 1 for every page.  If I set LinesPerPage to zero, then I get it all on one page, which still has Page -1 of 1 at the end.
    If I export to CSV, I get Page -1 of 1 for every line.  If I use the viewer to review the report at runtime, and export from there, I cannot export as Text so I have no comparison.  However, the Export to CSV from the Viewer as Page -1 of 1for every entry just as my export does.
    What do I need to do to get the correct line info?  What is that is different from CRXI RDC and CRVS2010 .net that would impact this behavior?

    Yes, I am using SP2 for VS 2010 and I'm using the Page N of M formula in the page footer.  While my export code was not quite as simple as yours, I did it both ways in my test program with the same results.  A one page report whose footer says Page -1 of 1.
    Here's the relative code snippet:
    #if 0
        CrystalDecisions::Shared::ExportOptions ^exportOptions = gcnew CrystalDecisions::Shared::ExportOptions();
        exportOptions->ExportDestinationType = CrystalDecisions::Shared::ExportDestinationType::DiskFile;
        exportOptions->ExportFormatType = CrystalDecisions::Shared::ExportFormatType::Text;
        TextFormatOptions ^textFormatOptions = exportOptions->CreateTextFormatOptions();
        textFormatOptions->LinesPerPage = 0;
        textFormatOptions->CharactersPerInch = 11;
        exportOptions->FormatOptions = textFormatOptions;
         CrystalDecisions::Shared::DiskFileDestinationOptions ^diskFileDestinationOptions = exportOptions->CreateDiskFileDestinationOptions();
         diskFileDestinationOptions->DiskFileName = gcnew System::String("c:\temp\test.txt");
         exportOptions->DestinationOptions = diskFileDestinationOptions;
        thisReport.Export(exportOptions);
    #else
        thisReport.ExportToDisk(CrystalDecisions::Shared::ExportFormatType::Text, gcnew System::String("c:\temp\test.txt"));
    #endif
    Edited by: nlDevotie on Jan 9, 2012 11:59 PM

  • Why am i getting this page when i type in my wesite in the url when i used DW

    @charset "utf-8"; body { font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif; background: #4E5869; margin: 0; padding: 0; color: #000; } /* ~~ Element/tag selectors ~~ */ ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */ padding: 0; margin: 0; } h1, h2, h3, h4, h5, h6, p { margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */ padding-right: 15px; padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */ } a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */ border: none; } /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */ a:link { color:#414958; text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */ } a:visited { color: #4E5869; text-decoration: underline; } a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */ text-decoration: none; } /* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */ .container { width: 80%; max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */ min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */ background: #FFF; margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */ } /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */ .header { background: #6F7D94; } /* ~~ These are the columns for the layout. ~~ 1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design. 2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin. 3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document. 4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and they'll render in reverse order. There's no need to move the divs around in the HTML source. */ .sidebar1 { float: left; width: 20%; background: #93A5C4; padding-bottom: 10px; } .content { padding: 10px 0; width: 80%; float: left; } /* ~~ This grouped selector gives the lists in the .content area space ~~ */ .content ul, .content ol { padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */ } /* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */ ul.nav { list-style: none; /* this removes the list marker */ border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */ margin-bottom: 15px; /* this creates the space between the navigation on the content below */ } ul.nav li { border-bottom: 1px solid #666; /* this creates the button separation */ } ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */ padding: 5px 5px 5px 15px; display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */ text-decoration: none; background: #8090AB; color: #000; } ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */ background: #6F7D94; color: #FFF; } /* ~~ The footer ~~ */ .footer { padding: 10px 0; background: #6F7D94; position: relative;/* this gives IE6 hasLayout to properly clear */ clear: both; /* this clear property forces the .container to understand where the columns end and contain them */ } /* ~~ miscellaneous float/clear classes ~~ */ .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ float: right; margin-left: 8px; } .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */ float: left; margin-right: 8px; } .clearfloat { /* this class can be placed on a
    or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */ clear:both; height:0; font-size: 1px; line-height: 0px; }

    your home page to get into your Web site should be index.html (for Mac) or index.htm  (on PC)
    You can name it something other than index, but will be harder to find.  when you create the subjects and link to them, they can can be named anything with the html extension  Or if your using PHP end in .php. There is a Microsoft type asp or aspx but your hosting service has to set up using windows server system.
    My hosting service use a Linux server normally but can convert Windows for a Fee.  UNIX Linux has no concept of asp or aspx.
    See this : https://skitch.com/pjonescet/8mnnx/dreamweaver

  • LASERJET 1160 PRINTER RUNS A BLANK PAGE BETWEEN EVERY PRINTED PAGE AFTER UPGRADING TO WINDOWS 8.1

    Laserjet 1160 printer runs a blank page between every printed page after upgrading to Windows 8.1

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial printer. You can do this at Printers - LaserJet.
    Click on New Post.
    I hope this helps.
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Getting the page size in PDF file

    i want know how do get the page size in PDF file befor placing every page in document
    for example height=297 mm And width=210mm

    This script:
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both -pdf-and-indd-files.php
    answers all your questions.
    Peter

  • I can't get the page numbers in my table of contents to update when I update the book.

    I'm using Framemaker 11 and I have two TOCs in my book: one in English and one in French. Each TOC links to different documents in the same book. The reference page for each TOC is set and correctly displays the heading 1 and 2 I've told it to display, but the numbers do not update when the content in my document files changes to a different page. I've checked the conditional text settings in my document files; they are correct. When I update the book, I choose to update Numbering, All Cross-References, All Text Insets, OLE Links, Generate Table of Contents, Lists, and Indexes. What am I doing wrong? Thanks.

    I just tested this out and saw the same result as Rick - a book with child books ignores all generated files within the child books. This applies to adding content from them (e.g. their titles) to actually including them in the output. This applies to all versions of FM since v.9!
    However, there is a workaround for this. You need to use the hierarchical book structure in the parent book and create Folders for each book that you want to add. Then manually add the generated files (TOC, IX, List of..., etc.) and book to the respective folder. This is what it looks like for two child books in a parent book:
    Note that the child book generated files (TOC, IOR) show as just regular files at this point in the parent book. To get the page numbering to be continuous throughout the parent book, you will need to make a couple of passes. First set folder, files and books to have the Numbering continue from the previous (if you want all sequential page numbers). This will set the page numbers correctly except for what they were in the respective book TOCs. You will need to use the starting page number of the child TOC files in each folder (it shows in the Book status bar when click on the TOC file in the master/parent book).
    To set the individual book TOCs to be correct in the parent book, open the child book and set the TOC Numbering to start at the page stated in the parent book (status bar). Now update the child book to set the correct (parent book) page numbers in the child TOC. [This is a necessary manual step, as the page number assigned in the parent book is ignored when th child book is individually updated and FM uses 1 to start off the sequence in the child book.]  Repeat for each child book in the master/parent book.
    The final step is to Update the parent book and create the PDF. You should now have all of the files included in the PDF and the child TOCs should show the correct page numbers of the master book.
    This whole process of books within books seems a bit borked and one shouldn't have to be jumping through hoops to include child generated files. Please report this as a bug via: https://bugbase.adobe.com/index.cfm

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • Get plugins page is displayed in a different language then my firefox language

    The get plugins page inside the plugin manager is displayed in german eventhough my firefox is in turkish.

    Clear the Google cookies: Tools > Options > Privacy > Cookies: "Show Cookies"
    If the Google (Firefox) or Yahoo home page is in the wrong language then see:
    * Google: http://www.google.com/support/bin/answer.py?answer=873
    * Yahoo: http://help.yahoo.com/l/us/yahoo/homepage/troubleshooting/troubleshoot-02.html
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    # Shockwave Flash 10.1 r53
    # Java Plug-in 1.6.0_05 for Netscape Navigator (DLL Helper)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Shockwave|Shockwave for Director]] plugin to the latest version.<br>
    *http://www.adobe.com/shockwave/welcome/
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • How do I get the page on the screen larger and to stay larger all the time?

    my pages on my screen were large; all of a sudden the pages are display smaller on the middle of the screen. I can zoom a particular, but I have to zoom each time I go to another website or another page. How can I get the page to display larger without having to zoom each page displayed on the screen?
    == This happened ==
    Every time Firefox opened
    == After i downloaded updates to Adobe Reader 9.

    Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you need to adjust the font size on websites then look at:
    Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    NoSquint - https://addons.mozilla.org/firefox/addon/2592

Maybe you are looking for

  • SSO Login Page Error

    Can anyone solve this issue?? We are developing ASP.Net application with oracle 10g Application server for single sign-on. we need to map the IIS URL(eg /private/*), redirecting to Oracle Application server,authenticate it and get the result back to

  • Acrobat 8.1.2 cant print pdf no error

    My husband has an emachine desktop with HP Deskjet D4160, 512 RAM and Adobe reader 8.1.2 ... I have a Sony Vio desktop, 1.5 gig RAM, a second printer same model, and the Adobe reader 8.1.2. The 2 computers are not networked. Both of us are using wind

  • Email and calendar integration?

    Can anyone offer solutions on integrating email and calendar functionality? I'm looking for something similar to what you would find on hotmail, yahoo, etc. Feel free to email or call me at 716-224-7839. Thanks. Harry

  • Access policy Issue

    Hi all, I am trying to add a EBS responsibility automatically when creating a new user in OIM. I created the rules, group and access policy needed. In the access policy I selected EBS responsibility as the resource to provision. To test the new acces

  • Bean:write

    when i use <bean:write> say i have "<b>Jave Struts</b>" set in the "property attribute" when i out put this on the jsp page using <bean:write> it outputs the heading exactly what i wrote....i want the <b> and </b> tags to be html compliant.... when i