Update and replace a index via script

Hi everybody,
I created a book with 30 chapters, each of them having a local (or chapter) index at the last pages.
I would like to update these indexes and replace them with the new, updated ones (just as the command "Generate Index..."
do with the option "Replace the Existing Index" on).
I'm able to generate the index via script, but I don't know how to make it replace the existing one.
I dont want the Place the Index, as its precise location is variable and it can run for more than one page and frame.
So even I could get the coordinates of an existing index to place the new one,
I would have the re-layout them, what would defeat my automation goal altogether.
I just want to replace the existing indexes via script, as I can do using the interface.
Is it possible?
Thank you all in advance.
Edson Furman
[email protected]

I'd like to re-ask the same question. I am able to generate an index for the first time, but am at a loss how to do the scripting equivalent of pressing the "OK" button in the following dialog:
I'm guessing I should proceed something like this:
myDocument.indexGenerationOptions.replaceExistingIndex = true;
myIndex = myDocument.indexes[0].update();
myIndex.generate( ? DO I REALLY HAVE TO SPECIFY A PAGE ETC. HERE ? );

Similar Messages

  • Embedding full-text index via Script

    Hello Everyone,
    is there possibility to create and embed full-text index into my very long document via scripting Acrobat Pro? I've searched scripting API and there are objects like catalog or index, but both have only several methods and no embeding is mentioned there. Any help is appreciated. Thank you in advance.
    Jan

    try67 wrote:
    You're better off using a real authoring application like InDesign or Word.
    Thanks, but from this statement I am not sure if we are talking about the same thing. I mean index for full-text search - allowing to get immediate results after entering the search phrase, without any delay and (often quite slow) processing of the whole content. Now it is possible to embed it via Acrobat menu. I am asking whether this action has any equivalent in scripting API. I'd like to automate this process as now I have to do it manually via GUI (but luckily for the limited number of documents only).

  • My firefox updated and when i load my script up it crashes my firefox wha can i do to resolve this problem

    my firefox updated and when i load my game with a script up it crashes

    You can check for problems with current Flash plugin versions and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    *http://kb.mozillazine.org/Flash#Troubleshooting
    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Is it possible to modify the tag structure tree and the role map via scripting?

    We use unstructured FrameMaker to produce training materials which we distribute as tagged PDF to meet accessibility requirements.
    When FrameMaker creates a tagged PDF, it does a fairly good job of populating the structure based on the PDF setup information for the paragraph formats in the FrameMaker documents. However, there are some limitations in the support that FrameMaker provides. For example, almost all paragraphs are assigned to the P role even if they are headings and should be mapped to H1-H6.
    We want to be able to easily post-process a PDF that has been generated from FrameMaker to fix some of the tag structure issues (including tag names and the role map) so that the PDF will provide the optimum experience for a user of the JAWS screen reader.
    I spent some time reading the SDK documentation but didn't find much information about manipulating a tagged PDF via the API, especially via scripting.
    Does anyone have any examples or references which explain how to do it?

    AFAIK, it's not possible with a script. You might want to ask in the SDK forum, as it could be possible with a plugin.

  • Deploy reader updates and install/uninstall reader via GPO ???

    Hello,
    Got a couple of questions on install/uninstall via GPO and how to deploy reader updates.
    1) How to uninstall older version of readers via GPO?
    2) Is there an ADM file available for installing the latest reader via GPO?
    3) For reader patch updates, can it be deployed via GPO?  If yes, any docs. I can refer to?  If no, what is the minimum priviledge I must grant to domain users to allow them to run the update function w/in the reader (or assign to a specific file path)?
    Thanks in advance!
    Luke

    You may find most of the information you need in http://www.adobe.com/devnet/acrobat/pdfs/deploying_reader9.pdf
    Let us know if anything is missing.

  • HT202157 My Apple TV will not update and it is connected via ether not wireless

    I have an earlier version Apple TV and I have tried to update it several times using several methods.  I am connected to the internet via ether and not wireless and teh signal is good. I can stream without any issues ever.  the update is downloaded fine but not installed.  I get a failure to update message.  I have tried to updat normally, restore, reset, etc...... I have no more ideas.

    Welcome to the Apple Community Bro.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
        1.    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
        2.    Connect the micro USB cable to the Apple TV and to your computer.
        3.    Reconnect the power cable (only for Apple TV 3)
        4.    Open iTunes.
        5.    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

  • Can I save and replace Spotlight Index?

    Spotlight has been playing up recently. Several times a week it won't Find, so I have to use the Software Preferences/Spotlight/Privacy trick to re-index. That involves a half hour or so, plus a restart. (I suspect I need to reinstall my OS)
    Now, as most of the files I want to Find have been on my system for years, I thought if I could just save the Spotlight Index on my desktop, then replace the faulty index with the saved version whenever Spotlight plays up, then I have temporarily solved the problem. (I could re-index Spotlight at a convenient time)
    Does anyone know how to do this?
    Thanks in advance for any suggestions.
    Guy

    If you're asking if you can archive your text messages, you can email the text of your text conversations by opening the conversation, tapping Edit, tap all the parts you want to email, then tap Forward and enter an email address.  If you want to save the entire conversation as it appears on your phone you'll have to either take screenshots and email the photos to your computer or use 3rd party software such as PhoneView (Mac) or Touch Copy (PC or Mac).

  • Active content update and aspx pages

    i understand that Microsoft recently released an update to
    Internet Explorer that changes how Internet Explorer handles some
    web pages that use interactive controls. i have downloaded the
    update and have included the java script on my site. and so far i
    have not had any issues getting this to work with any of my html
    pages. however, when i have any flash work on my aspx pages the
    grey bar still appers around my work.
    what do i need to do to get my flash to work with aspx pages.
    any information will help. thanks.

    Check your code. You are using the object tags:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="674" height="238" id="Flash for web4"
    align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="images/FlashFiles/Flash for
    web4.swf" /><param
    name="quality" value="high" /><param name="bgcolor"
    value="#000000" />
    <embed src="images/FlashFiles/Flash%20for%20web4.swf"
    quality="high"
    bgcolor="#000000" width="674" height="238" name="Flash for
    web4"
    align="middle" allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "Andyrexic" <[email protected]> wrote in
    message
    news:epnqmo$4ag$[email protected]..
    > the site is
    http://www.microvellum.com
    and i have tried eveything that i
    > can
    > think of to get the grey bars to go away. as i said
    before i was able to
    > get
    > the grey bars to go away if i put this flash on a html
    page, is there
    > something
    > else i need to do to get it to work with aspx
    >

  • My Apple TV stalled during an update and now just shows an image of it being plugged into a USB. It won't complete the update and does nothing when I plug it into my Mac via USB.

    2 Apple TVs. The first won't reboot, it stalled during an update and now shows a picture of a UBS plug. Ive tried to plug into my computer, nothing happens. At a standtill.
    The second Apple TV works but only if I send something via Airplay. The remote no longer has any affect. The light on the front of the Apple TV blinks when I push a buttom on the remote but nothing happens.
    Any Ideas? I am starting to think I need to replace them. Thanks.

    Ok, with itunes open on the pc, plug one end of the usb cord into the computer, but not connected to the ipad.
    now, press the power button on the ipad until it turns off.
    Then, press and hold the home button on the ipad at the same you plug the usb cord into the ipad. DON'T LET GO OF THE HOME BUTTON.
    Keep holding the home button until you see the recovery mode message pop on the itunes window.
    When that happens, you should now be able to restore.

  • A Script to Find and Replace Layer Names

    Are there any scripts to find and replace layer names?
    There is an excellent script available for Photoshop which allows you to not only replace words in layer names, but also insert words as Prefixes, Suffixes and Sequential Numbers.
    The illustrator version of this script only allows sequential numbering: It doesn't offer find and replacing of words.
    Ideally, it would be great if there was something that could do multiple find and replaces in one go:
    (e.g.
    You have layers like this Car, Dog, Bat
    You enter: car(Option1), dog(Option2), Bat(Option3)
    Your layers then become: Option1, Option2, Option3).

    big_smile, that's a very good start! Step 1 of Learning How To Script is indeed, adjusting an existing simple script to make it do more complicated things. (And usually then "break something", which is also a required part of the process.)
    You are correct in your observation this is repetitive stuff. For one or two different items that wouldn't be a problem, but in longer lists you soon get lost.
    The usual way of working with find-change lists is to build an array:
    var layernames = [
    [ 'FHairBowlBoy *Hair', 'Hairboy1' ],
    [ 'FHairCurlyafroBoy *Hair', 'Hairboy2' ],
    [ 'FHairSpikyBoy *Hair', 'Hairboy3' ],
    The general idea is to loop over all names, check if the current layer name is "layernames[i][0]" (the left column) and if so, rename it to "layernames[i][1]" (the right column). If you know how to write a loop in Javascript, then you can implement this right away.
    However ..
    A more advanced way to do this doesn't even need loop to over all layernames -- instead you can immediately "get" the correct name per layer! It's magic! Almost!
    The trick is to use a Javascript object instead of an array. Javascript objects are nothing special; Illustrator's 'layers' is an array of objects, and each object "layer" has a property "name", whose value you can read and set. What I do here is create a new object, where the "name" part is the original layer name and its value is the new layer name. All you need to check for per each layer is if there is a property 'object.originalLayerName', and if so, assign its value to that layer name.
    This looks a bit like the array above, except that (1) you use {..} instead of [..] to create an object, and (2) you add "name:value" pairs instead of "value" only (actually, the 'name' of a value in an array is simply its number).
    So this is what it looks like:
    // JavaScript Document
    var doc = app.activeDocument;
    // name indexed object
    var layernames = {
    'FHairBowlBoy *Hair':'Hairboy1',
    'FHairCurlyafroBoy *Hair':'Hairboy2',
    'FHairSpikyBoy *Hair':'Hairboy3'
    // loop through all layers
    for (var i = 0; i < doc.layers.length; i++)
    //Set up Variable to access layer name
    var currentLayer = app.activeDocument.layers[i];
    if (layernames[currentLayer.name])
      currentLayer.name = layernames[currentLayer.name];
    Enjoy!

  • How can I set Firefox update preferences via script so I can configure our 200 Macs to disable checking for updates?

    Most of our Mac users do not have admin privileges. So when they get alerted about Firefox updates, they don't have the ability to install them. We would like to disable Firefox for checking for updates, then push out updates from our software server as needed. We have about 200 machines to configure. Is there a way to disable checking for updates via script (bash or Applescript)? And if so, is there a guide or web site to explain the process?

    Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify default values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    * http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes

  • Catalog manger "search and replace " using xml script

    Hi ,
    we have renamed 6 rpd columns names in rpd & alias is not removed yet .In catalog manager i can search and replace using string .But it takes lot time as they are stored in different reports , which are existing . I am trying to use xml script for replacing them.I got sample script from help file for single column . can anyone help for doing that for multiple strings.I will provide with my inputs .
    my inputs:
    <?xml version="1.0" encoding="utf-8"?>
    <actions>
    <action command="textReplace" oldValue="column 1 " newValue="column one" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 2" newValue="column two" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 3" newValue="column three" ignoreCase="true"/>
    </actions>
    please correct me .

    Given xml content looks okay but just in case check this oldValue="column 1 ", there is additional space at the end.
    I would suggest to extract Analysis report (.csv) using Catalog Manager and find out the list of reports based on those columns.
    This would help you learn with list of reports based on report owners, and then go for the fixing those reports.
    If you go by xml replace you never know the affected reports and you may not confirm until report owners come back to you with issues.
    This might take little bit time but your changes based on proper doc.
    Let me know updates, if helps mark
    Edited by: Srini VEERAVALLI on Feb 19, 2013 3:21 PM

  • I used someone else's computer to update my iPhone and when it was done all of my content was gone and replaced with the computer owner's content.  Can I get my stuff back?

    My boyfriend wanted to update his iPhone so I let him use my computer/iTunes to do it because he does not have his own.  When we plugged his phone in it brought up his name to select and then we began the update.  After it was done and his phone came back up it had deleted most of his info he had like contacts and replaced it with my contact list.  Is there anyway to get his info back and restored to his phone?  Help!!

    You can only sync to 1 iTunes library on one computer.
    If you sync to another, you get what happened to you.
    If you have not backed it up on your computer, where you originally synced to, you are out of luck.
    If you did backup up, read this:
    http://support.apple.com/kb/ht1766

  • I am unable to update my album art since I commenced using match (and after upgrading to Yosemite).  How can I 'unembed' old cover art and replace?

    I am unable to update my album art on my iMac since I started using Match (and after upgrading to Yosemite 10.10.3).  A message advises that it's not possible to removed old artwork if it's embedded.  How can I 'unembed' old cover art and replace?

    Normally artwork recovered with iTunes is stored as a separate artwork file and iTunes refers to that file to display artwork when you click on a track.  However, if you then copy the file to another player the artwork file is left behind and the track will not display the artwork on the other player.  To get around this it is possible to embed the artwork in the music file itself so it always travels with the file.  Artwork can be embedded by you or files from third party sources may arrive with embedded artwork.  iTunes apparently now won't replace artwork for such files.  You can accomplish this by completely deleting artwork for a file or set of files in Get Info, then getting iTunes to fetch artwork which will then be set as a reference file rather than being embedded.
    I use an old iTunes so unless you are using an ancient iTunes it won't help for me to give you great details.  To erase artwork I simply get info on a series of files and check the box next to the artwork box without adding any artwork and close.  To do it for  single file I Get Info, go to the artwork display tab and click delete.  Here's a Windows reference for a newer iTunes (but the "old Get Info" reference is for early iTunes 12 and no longer works with newer):I cannot delete embedded album artwork in iTunes 12

  • IPhone 4, iOS 6 update, and wifi - cannot browse WWW via DNS

    Apologies for the long post in advance. Hopefully it's exhaustive enough for Apple to take notice.
    tl;dr:
    updated iPhone 4 (VZW) to iOS 6 on home wi-fi. now phone will not browse to WWW on home wi-fi, EXCEPT WHEN BYPASSING DNS (ie, browsing by IP address). tried lots. no success
    full events detail:
    I updated my iPhone 4 to iOS 6 yesterday evening (via iTunes on my Win 7 x64 PC). Upon completion, I ran into some trouble trying to sign in with my AppleID in order to restore from my iCloud backup. Suspecting that Apple's servers were just experiencing trouble (though nothing indicated iCloud was down), I skipped signing in and went about my day. The rest of my settings copied across from my computer. At that point, I slept on it.
    The following morning (today), I noticed that I still could not sign in, but was off to work and did not have time to examine it further. At the office, all seemed well, and I used the phone with the updated OS largely without issue, including connecting to two new wifi networks. Returning home, however, I noticed that the behavior was the same as the previous evening, ie I could not connect to things like the App Store in order to install updates, the web to look for information, etc. Now having time to troubleshoot, I pressed forward with the investigation and immediately found a number of support community and web threads detailing wi-fi issues on devices after updating to iOS 6. I followed the steps I found, but I still have the same issue. Below is the list of things I've attempted, to the best of my ability to recollect.
    1. forget network, rejoin - same symptoms
    2. power off phone, power on - same symptoms
    3. set wi-fi network HTTP proxy to Auto - same symptoms
    3. forget network, power off wi-fi, power off cellular data, power on wi-fi, rejoin network (same symptoms), power on cellular data (same symptoms)
    4. power off bluetooth (already done, no change), power on bluetooth - same symptoms
    5. forget network, airplane mode on, power on wi-fi, rejoin network - same symptoms
    6. clear cookies, cache, website data - same symptoms
    7. try another browser (Opera) - same symptoms
    8. try static IP on wi-fi network - same symptoms
    9. forget network, power off router, turn off wi-fi, power off phone, power on phone, reset network settings, power on wi-fi, power on router (after 5+ mins), rejoin - same symptoms
    10. restore phone to factory defaults (same symptoms) and restore from backup (same symptoms)
    11. enable SSID broadcast on router - same symptoms
    12. enable WMM on 802.1n router - already enabled, same symptoms
    13. disable 40MHz channels on 802.1n router - same symptoms
    14. set router to 802.1g operation - same symptoms
    15. remove wireless security from wi-fi network - same symptoms
    16. change SSID - same symptoms
    17. update router firmware - no updates available, also, same router was working prior to update and continues to work without trouble with all other wi-fi devices in the house
    18. try another router - already verified this works, but as a result of the particulars of this case, is not relevant as my home router is not at fault, so much as the update to iOS 6 is on my iPhone 4. as other routers work and as a factory restore did not resolve (prior to backup restoration), I also do not believe my iPhone 4 to be at fault, so much as the software update itself
    Having exhausted all of those suggestions, I dug further. The phone was working without issue up until the moment it needed to reboot to apply the downloaded iOS 6 update. I initially encountered the incorrect password scenario during the post-update configuration, but after forgetting and setting up the wireless profile from scratch (from the iOS 6 setup wizard), it joined my wi-fi network. The phone DID pull an IP address from my router, and responded to pings from other devices on my network without issue. In addition, using the Safari browser to web to a local network device, such as my router, was successful, indicating that the wi-fi network was established and routing appropriately. All other devices on the network, wired or otherwise, were working without issue. I then attempted to trace traffic and found that none of my phone's web requests were reaching my router, except for those targeted at the LAN. I then tried browsing to an IP to ensure there was not a DNS issue, and my phone browsed successfully. I then tried another site by domain name and failed, and then its IP and was successful. I verified against my router's logs that the web requests were routing through it to ensure that my cellular data wasn't taking over, and the logs confirmed it. At that point, I tried changing DNS from my standard servers to another set, but the behavior remained the same. I then tried setting my router as the DNS server, but the issue remained.
    In conclusion, it appears to be some sort of DNS issue specific to the update. I would also hazard a guess that this is impacting people on the networks where they downloaded the update and/or were connected when the phone actually updated. I've tried setting the profile to use local, ISP, and public DNS servers, but as the requests never reach my router, I am inclined to believe it's being restricted by a setting on the phone itself. Because the problem persists through a factory restore, it would seem to point to all data not being truly erased during that process. Recall that I'm having the same issue prior to a backup being restored to the device, and that this issue prevents iCloud from being accessed during the setup process while on the problematic wi-fi network, so that should rule out the backup playing any part in the trouble.
    Any thoughts?

    The OP is correct, I have done many tests.  With IOS6 there appears to be a dns issue in some cases with IOS for both ipad(2) at lease (my wife won't let me upgrade here v1) and the iPhone4s in my case.  Pretty easy to diagonse, I wish Apple would fix it.
    1.) I use a Juniper 5GT wireless firewall and all of my other devices (many apple, ipad, MBP, iMAC,3 ipods etc) are fine: Not ipad2 or iphone4s running IOS6
    2.) after upgrade nothing worked.  narrowed it down by messing with dns (I have my own dns server)
    3.) Strange thing; dns works over MiFI (Verizon) and Carrier
    4.) confirmed that it is a dns and not network issue.
    -down load free tool called ping-scope-lite.   (obviously you need to turn off wifi to do this)
      http://itunes.apple.com/us/app/ping-scope-lite/id431500107?mt=8
    turn on wifi
    - ping Level3 dns server 4.2.2.2 or Googlesdns servers 8.8.8.8 or 8.8.4.4 these worked.
    -now ping by name google.com or ipchicken.com
       - try others; same result.
    Apple did say that they would give me another iphone 4s: I just wasn't sure that would fix my issue.  I tried downgrading to 5.1.1 but I got an error saying my device wasn't able to do so (tried even blocking itunes from contacting Apple)  I whis this could be fixed.  I did even have it working using my own dns server but now I can see that my phone over wifi isn't even trying to make a dns request now.
    Stuck

Maybe you are looking for