Looking for a script to connect bodytext to footnote and cross-references

Hi,
Need to do the following:
I was provided with separate (tagged-text) files: bodytext, (foot)notes and cross-references. Now I am looking for a solution (script?) that can do the following:
to restore the connection between the body-text, the footnotes and te cross-references after placing these in a document in Indesign.
The cross-references should appear (in anchored text-frames) in the margin and the notes in a separate frame at the bottom of the page. If possible in the same way as footnotes in Indesign appear, but in a separate frame to be able to do some more formatting than native footnotes would accept.
I have tested the plugin: Side Heads from InTools, and tis works well with Indesign files tthat contain footnotes. But this doesn't work with separately placed footnotes from a tagged-text-file, as they re not knotted together.
I can't do any scripting myself.
I would appreciate any help, and I am looking forward to your response...
Regards,
kkingg

The first thing to do is:
regexp "match regexp = ([0-9]+)" $_cli_result match count
if $count eq 0
exit 0
end
The second is a bit more challenging.  I think this will work:
cli command "show call active voice br"
foreach line $_cli_result "\n"
regexp "^([0-9a-zA-Z]+) : " $line match callid
if $_regexp_result eq 1
  continue
end
regexp "^dur 1d" $line
if $_regexp_result eq 1
  cli command "show call active voice br | section $callid"
  syslog msg "$_cli_result"
end
end

Similar Messages

  • Looking for a script that will size photos down and give unique filenames

    Here's the challenge:
    I have a bunch of photos that need to be sized down to three different types of thumbnails, each group of thumbnails needs to have a specific prefix to the filename while keeping the rest of filename in tact.
    So example:
    I start out with a photo 1400 x 933
    That photo needs to be sized down to 3 different smaller sizes: 630 x 420, 210 x 140 and 140 x93 (all of those have the same aspect ratio as 1400 x 933). So far this is a simple Action in Photoshop.
    The trick I can't figure out is that these photos need to have a specific file naming convention. Say for example the 1400 x 933 photo we start out with is named w_paul_001.jpg the other photos once sized down need to be: x_paul_001.jpg (for the 630x420), y_paul_001.jpg (for the 210 x 140) and z_paul_001.jpg (for the 140x93).
    How I do dat?

    This will do what you want:
    var srcDoc = app.activeDocument;
    var imgNum = srcDoc.name.substring(7, (srcDoc.name.length)-4);
    var myJpgQuality = 12
    var sizeArray = [
    [1400, 933, "x_paul_"],
    [630,  420, "y_paul_"],
    [100,  100, "z_paul_"]
    for (var i=0; i<sizeArray.length; i++)
      var shrinkWidth =  sizeArray [i][0];
      var shrinkHeight = sizeArray [i][1];
      var mySaveName = sizeArray [i][2];
      var id428 = charIDToTypeID( "Dplc" );
      var desc92 = new ActionDescriptor();
      var id429 = charIDToTypeID( "null" );
      var ref27 = new ActionReference();
      var id430 = charIDToTypeID( "Dcmn" );
      var id431 = charIDToTypeID( "Ordn" );
      var id432 = charIDToTypeID( "Frst" );
      ref27.putEnumerated( id430, id431, id432 );
      desc92.putReference( id429, ref27 );
      var id433 = charIDToTypeID( "Nm  " );
      desc92.putString( id433, mySaveName );
      executeAction( id428, desc92, DialogModes.NO );
      activeDocument.resizeImage(shrinkWidth, shrinkHeight, 72, ResampleMethod.BICUBIC);
      filePath = srcDoc.path + '/' + mySaveName + imgNum + '.jpg';
      var jpgFile = new File(filePath);
      jpgSaveOptions = new JPEGSaveOptions();
      jpgSaveOptions.formatOptions = FormatOptions.OPTIMIZEDBASELINE;
      jpgSaveOptions.embedColorProfile = true;
      jpgSaveOptions.matte = MatteType.NONE;
      jpgSaveOptions.quality = myJpgQuality;
      activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE);
      app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

  • I blog on TypePad using Word 2007 and documents freeze when I'm looking at them in Windows explorer; why do I get the error message that Mozilla is looking for a script?

    I have now had two error messages - the first one looked for this script: Script: resource://gre/modules/XPCOMUtils.jsm:258. The second one (today) looked for Script: resource://gre/components/nsPrompter.js:68.
    I have reset my word template, also reset word registry for data and options (as per Microsoft's help pages) for both those 'fixes' there was an initial improvement, but the problem happened again after I reposted on my blog today and then went to Windows explorer to view my files. It seems to 'seize' as I select a file, so that the preview does not appear (for up to 15-20mins).
    I see on the internet using the second script as a search just now that one other has had a similar problem and one also since Mozilla 4 upgrade. My problems have also been pretty much since I upgraded.
    It happens (apart from my fixes) every time I go to look at a word document via Windows explorer. Excel files are less affected.
    One web suggestion is to clear the cache, but I am hesitant to lose all my passwords unless I have to.

    I still have the problem although I uninstalled Mozilla (clearing the cache didn't work and neither did Word diagnostics), so have ended up thinking it could be Norton (the manual update worked x1) or Windows. Today I found an answer: disable the preview pane in Windows Explorer - there's a history of problems with this view.

  • Looking for app that can connect iPhone / Ipad to generic bluetooth camera

    looking for app that can connect iPhone / Ipad to generic bluetooth camera

    I doubt that you will find one. I have not heard of BT cameras.

  • Looking for a script to automate renaming layer objects, not the layer itself!

    Hey there everyone,
    I was wondering if there is a possibility to create/have a script for an automated renaming of several named layer objects in Indesign (CS6).
    The situation, I'm facing is a document for a templating process with at least 80 layers and sometimes some special elements on each layer. The naming of the layers is kind of repeating for each page that is used. The only difference is some prefix change in the layer name and/or the name of an element itself. My problem is, that I need to rename most of those layers AND elements in a same way and I'm looking for a script that asks me for the name of a layer or element (perfect would be just a part of the name to have multiple steps at once) and I have the chance to type in the desired value. It affects frames, graphical elements and text boxes.
    If anyone has an idea, how to simplify this process I would be very glad to get some informations or advices.
    Thanks in advance
    Ralf

    Here is a more descriptive version of the script above... :)
    # Change "PSDrive" to PS1: (Sitecode)
    CD PS1:
    # Get all CMPackages to $CMPackages_All Variable
    $CMPackages_All = Get-CMPackage
    # Set the DP to use with. You may need to run it again with other DP just in case some Packages are missing...
    $DPName_FQDN = "YourDP.Contoso.com" # Your FQDN DP name to reference from.
    # Set folder to store *.pkgx files
    $FilePath = "E:\_ESD\Prestage\" # FilePath
    # For all CMPackages
    foreach ($obj in $CMPackages_All) {
        $packageType = $obj.PackageType
        $packageID = $obj.PackageID
        $packageVendor = $obj.Manufacturer
        $packageName = $obj.Name
        $packageVersion = $obj.Version
        # Formulate File name based on Vendor Name, version and PackageID
     $FileName = $FilePath + $packageVendor + "_" + $PackageName + "_" + $packageVersion + "_" + $packageID + ".pkgx"
        # Replace space with underscore
        $FileName = $FileName.Replace(" ","_")
        if ($PackageType -eq 0) {
            if (!( Test-Path $FileName)) { # This makes the package to skip if it is already created.
                Write-host "Publishing CMPrestage Content for $PackageID $PackageName to $FileName via $DPName_FQDN ..."
                Publish-CMPrestageContent -PackageID $packageID -DistributionPointName $DPName_FQDN -fileName $FileName -ErrorAction Continue
    YPae

  • Looking for a script that get images' urls from a website

    Hi,
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?

    La_Salamandra wrote:
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?
    You have to improve your design. Even if you can find the Coldfusion code, your design will still fall short in 2 ways.
    First, it is unreliable, because you're depending on some arbitrary site to be available and up to speed. Secondly, it is aesthetically wrong to be collecting pictures, especially large numbers of them, dynamically from someone else's site.  Think of their copyright and bandwidth.
    Fortunately, there are simple solutions. First, identify, by eye, the web pages containing the pictures you're interested in. Ask for permission from the owner.
    You could indeed use Coldfusion's cfhttp or any other script to download the JPGs, PNGs, and so on. But then, why waste your time re-inventing the wheel? It is infinitely better to use a web crawler !
    With most crawlers, you only have to supply the URL of the site, and the file extensions it has to grab (in your case, jpg, png, bmp, and so on).
    One click on the button, and you have them reeling in. Automatically. Some crawlers are considerate enough to enable you to adjust the download bandwidth. (We can learn from a million years evolution wisdom. The vampire bat is known to inject a painkiller before sucking!).
    Now that you've downloaded the images to your site, the links you display to your users are all yours. You may choose to resize some of the images, display them as you wish, and the issues of reliability and bandwidth are now up to you.

  • Looking for a class to connect to MySQL data base

    Hi,
    I'm looking for a class to connect to MySQL data base.
    And i want to know how to access to my data base MySQL under linux ( i've already the driver for mysql-java).
    Can you help me ?
    Thank u.

    I'm looking for a class to connect to MySQL data
    base.Do you mean driver class or ready-made code?
    And i want to know how to access to my data base
    MySQL under linux ( i've already the driver for
    mysql-java).Search for the JDBC tutorial.

  • Install gets stuck looking for /global/scripts/ac_media.js

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

  • Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    Hi All,
    I need a T-script  for sql 2005 and 2008 which should give output as:
    Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    In the list below, everything that is in bold face is available in sys.master_files:
    Drive
    Diskspacefree,
    Databasename
    Filename
    Filetype
    Filesize
    Spaceused,
    spacefree,
    free(%),
    MaxsizeMB
    autogrowthsize
    Filegroup
    Everything in bold face is in sys.master_files. Diskspacefree is also fairly simple; you can get it with xp_fixeddrives.
    Filegroup requires you sys.filegroups in every database, although you can hardcode "PRIMARY" for the file_id = 1.
    To get space used per file, it appears that you need to need to visit every database and run fileproperty(filename, 'SpaceUsed') to get the data.
    You need to revisit the topics for the views and function I have listed here. xp_fixeddrives is undocumented, but the output is very simple to grasp.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Looking for iTunes Script

    I'm looking for a script that would remove ALL the album art from my songs. I've got so many mismatched album covers/art that it would be easier to start over from scratch than to go through all my songs one by one.
    Thanks in advance,
    Chris

    You really don't need a script.
    Select all songs (Command-A) and Get Info (command-I).
    Tick the checkbox at 'Artwork' and click OK.
    All embedded artwork will be removed.
    To remove all downloaded artwork (from the iTunes Store), select all songs again, control-click on the selection and choose 'Clear Downloaded Artwork'.
    Hope this helps.
    M

  • Looking for Pages script to find "return" "return" and delete 2nd one only

    Looking for a Pages Applescript to find "return" "return" and delete 2nd one only. Perform on entire document.
    Thanks

    Funny, the same question was asked on 2011/11/12 in http://macscripter.net/viewtopic.php?id=37477
    Nigel Garvey posted a neat answer :
    --{code}
    tell application "Pages"
       delete (paragraphs of front document whose length is 1)
    end tell
    --{code}
    Yvan KOENIG (VALLAURIS, France)  lundi 14 janvier 2011 11:01:29
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Looking for an Access Point with 2 Ethernet ports and powered via PoE

    Hi Gurus,
    I am looking for an Access Point with 2 Ethernet ports and the access point can be powered via PoE. I have been assigned with a requirement where the rooms need to have access point as well as an Ethernet Cable provided from the Access Point as a backup for connectivity.
    The room only has one data cable coming from the main IT room as well does not have a spare power socket to power the Access Point. Will be good if it can be centrally controlled or controller based.
    Any recommendations?
    Regards
    J

    For the backup plan, the cheapest solution may be to just run a couple new cat5e drops to the room(est cost $250). If not then purchase a small Cisco POE switch for the room(est cost $2k). For wireless I would purchase a POE enabled Cisco AP. But you will need to verify the POE switch/blade you will be connecting the AP to can power the AP you buy. I got burned by that issue when we purchased some Cisco 1251 AP's with dual radios and they needed more power than our 4500 POE blades could handle. We were told we would need to purchase new 48 port 10/100/1000 blades or power injectors. Our Cisco sales vendor took the heat for that mistake.
    Posted by WebUser Steven Kinney from Cisco Support Community App

  • My iMac is looking for wireless keyboard but I have a usb and it is plugged in.

    my iMac is looking for wireless keyboard but I have a usb and it is plugged in. Right now I am using the one from my old computer. This happened once before and I unplugged/plugged in, restarted. Didn't work. Repeated several times, it finally worked. This time not so much. Any one else have this problem and know how to solve it?

    Try turning off Blue Tooth in its respective preference panel. Do not try using the USB keyboard in a USB extender. Connect directly to the computer.

  • Looking for an app that I can create,search and edit documents on all 3 devices iPhone MacBook and ipad

    Looking for an app that I can create,search and edit documents on all 3 devices iPhone MacBook and ipad

    Apples iworks would do that

  • Unix Script to connect to Portal Database and move the files to XI Server

    Hi all,
    we have a requirement where the source BW system is placing files in Content Management in the link http://xxx:50100/irj/go/km/docs/documents/Public%20Documents/HFM.
    XI needs to read the files from the above location.Since the files are stored in Portal database,we cant do FTP to this location.
    So we have been asked to write a script which connect to this location and moves the files to XI directory.
    Can someone plz help me with this script?

    The concern has been discussed earlier at
    here and should be helpful to check the database size and free available space in exchange server.
    This blog has also good explained about "how to count mailbox per database in exchange 2010". Please check this :
    http://blog.powershell.no/2010/11/21/retrieve-number-of-mailboxes-per-database-in-exchange-server-2010/

Maybe you are looking for

  • Exception while Running a Java Program for UME.

    Hi Experts,                        I am trying to run a java program to acess UME. Its a sample to create user but all of my samples are throwing this exception in NWDS  (Console).Can anyone tell me why is it throwing this exception . com.sap.securit

  • I installed the add-on "customizable shortcuts" - how do I find and use it?

    It is listed under my add ons, but I have no idea how to actually use it. It doesn't open up as a feature. I just need to stop the alt key from stopping my typing every time I accidentally hit it.

  • How can I save my vis in the old format

    I'm using Labview 9, but would like the be able to save my files in the old 8.5 format so if I need to open them on a machine that only has 8.5 that I can open them. Is there a way to do this?

  • Buy desktop version of Indesign for teachers at special discount

    I'm a teacher and want to buy InDesign for my desktop which runs windows 7, I understand as am a teacher and eligible for  at a special discount. PS help me with the link to buy the product with the discount available. Thanks, Arif

  • Mavericks Kernel panic after installing xcode

    Hi, I was stupid enough to install an older version of Xcode (3.2.5) on Mavericks and during the installation, my Mac completely crashed. It just went black. After rebooting, I get a kernel panic each time. The error dump mentions "Mac OS version not