Indexing Script Files

I have a bunch of script files for the Torque Game Engine, which have file extensions of .cs and .gui. Mac OS X does not recognize these files, and so does not index them properly. I would just like to be able to search them with spotlight just like any other text file. I'm new to Mac OS X. Is there a simple way that I can do this?

Try the instructions in this article.
(14476)

Similar Messages

  • How to load color table in a indexed mode file??

    How to load color table in a indexed mode file??
    Actually, if i opened a indexed file and want to edit color table by loading another color table from desktop (or any other location), any way to do this through java scripting??

    continuing...
    I wrote a script to read a color table from a GIF file and save to an ACT color table file. I think it might be useful for someone.
    It goes a little more deeper than the code I posted before, as it now identifies the table size. It is important because it tells how much data to read.
    Some gif files, even if they are saved with a reduced palette (less than 256), they have all the bytes for the full color palette filled inside the file (sometimes with 0x000000). But, some gif files exported in PS via "save for web" for example, have the color table reduced to optimize file size.
    The script store all colors into an array, allowing some kind of sorting, or processing at will.
    It uses the xlib/Stream.js in xtools from Xbytor
    Here is the code:
    // reads the color table from a GIF image
    // saves to an ACT color table file format
    #include "xtools/xlib/Stream.js"
    // read the 0xA byte in hex format from the gif file
    // this byte has the color table size info at it's 3 last bits
    Stream.readByteHex = function(s) {
      function hexDigit(d) {
        if (d < 10) return d.toString();
        d -= 10;
        return String.fromCharCode('A'.charCodeAt(0) + d);
      var str = '';
      s = s.toString();
         var ch = s.charCodeAt(0xA);
        str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
      return str;
    // hex to bin conversion
    Math.base = function(n, to, from) {
         return parseInt(n, from || 10).toString(to);
    //load test image
    var img = Stream.readFromFile("~/file.gif");
    hex = Stream.readByteHex(img);      // hex string of the 0xA byte
    bin = Math.base(hex,2,16);          // binary string of the 0xA byte
    tableSize = bin.slice(5,8)          // Get the 3 bit info that defines size of the ct
    switch(tableSize)
    case '000': // 6 bytes table
      tablSize = 2
      break;
    case '001': // 12 bytes table
      tablSize = 4
      break;
    case '010': // 24 bytes table
      tablSize = 8
      break;
    case '011': // 48 bytes table
      tablSize = 16
      break;
    case '100': // 96 bytes table
      tablSize = 32
      break;
    case '101': // 192 bytes table
      tablSize = 64
      break;
    case '110': // 384 bytes table
      tablSize = 128
      break;
    case '111': // 768 bytes table
      tablSize = 256
      break;
    //========================================================
    // read a color (triplet) from the color lookup table
    // of a GIF image file | return 3 Bytes Hex String
    Stream.getTbColor = function(s, color) {
      function hexDigit(d) {
        if (d < 10) return d.toString();
        d -= 10;
        return String.fromCharCode('A'.charCodeAt(0) + d);
      var tbStart = 0xD; // Start of the color table byte location
      var colStrSz = 3; // Constant -> RGB
      var str = '';
      s = s.toString();
         for (var i = tbStart+(colStrSz*color); i < tbStart+(colStrSz*color)+colStrSz; i++) {
              var ch = s.charCodeAt(i);
              str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
          return str;
    var colorHex = [];
    importColors = function (){
         for (i=0; i< tablSize; i++){ // number of colors
              colorHex[i] = Stream.getTbColor(img, i);
    importColors();
    // remove redundant colors
    // important to determine exact color number
    function unique(arrayName){
         var newArray=new Array();
         label:for(var i=0; i<arrayName.length;i++ ){ 
              for(var j=0; j<newArray.length;j++ ){
                   if(newArray[j]==arrayName[i])
                        continue label;
              newArray[newArray.length] = arrayName[i];
         return newArray;
    colorHex = unique(colorHex);
    // we have now an array with all colors from the table in hex format
    // it can be sorted if you want to have some ordering to the exported file
    // in case, add code here.
    var colorStr = colorHex.join('');
    //=================================================================
    // Output to ACT => color triplets in hex format until 256 (Adr. dec 767)
    // if palette has less than 256 colors, is necessary to add the
    // number of colors info in decimal format to the the byte 768.
    ColorNum = colorStr.length/6;
    lstclr = colorStr.slice(-6); // get last color
    if (ColorNum < 10){
    ColorNum = '0'+ ColorNum;
    cConv = function (s){
         var opt = '';
         var str = '';
         for (i=0; i < s.length ; i++){
              for (j=0; j<2 ; j++){
                   var ch = s.charAt(i+j);
                   str += ch;
                   i ++;
              opt += String.fromCharCode(parseInt(str,16));
              str = '';
         return opt
    output = cConv(colorStr);
    // add ending file info for tables with less than 256 colors
    if (ColorNum < 256){
         emptyColors = ((768-(colorStr.length/2))/3);
         lstclr = cConv(lstclr);
         for (i=0; i < emptyColors ; i++){
              output += lstclr; // fill 256 colors
    output += String.fromCharCode(ColorNum) +'\xFF\xFF'; // add ending bytes
    Stream.writeToFile("~/file.act", output);
    PeterGun

  • "The required index.xml file is missing."

    Hello everyone !
    I created a pages files a couple of days ago.
    I modified it successfully yesterday, by adding some jpeg files in it.
    But, now i can't open it.
    The massage is "The required index.xml file is missing."
    Although I still can have a "quick look" at my file.
    This is the first and only time I've had this.
    What can I do ?
    Thank you for your concern.

    speckel wrote:
    I tried using the .zip trick, but it doesn't work...
    May you explain what means "it doesn't work".
    I know what means "it works" : we get a package in which we may find the Index.xml file
    "It doesn't work" may means :
    (1) double click the zip file can't expand the file
    (2) it expands it but there is no index.xml file in the resulting package
    (3) it expands, there is an index.xml file but Pages can't use it
    It's a bit odd but we get the same error message in the three cases
    In case 1, your unique help is the pdf displayed in Preview.
    In case 2 & 3, you may retrieve your picture files if you inserted some of them.
    In case 3, sometimes, we may extract the text contents when a preview.pdf isn't available but for you, it's unneeded as the preview is available. So, you may extract the text component with a Copy/Paste action.
    CAUTION : I hope that this stupid accident will help you to understand that computers aren't perfect tools. When we use them, the main rule is *_keep incremental (chronological) backups_*. This will give you the ability to retrieve an usable document among a set of consecutive copies.
    You may achieve this goal with :
    (1) my free autosave script (dedicated to iWork)
    (2) the application ForeverSave which apply to every applications but is not free (to get incremental backups).
    Yvan KOENIG (VALLAURIS, France) lundi 20 décembre 2010 16:02:05

  • Build Indexes Script Stopped After 20 Indexes. Is there a limit?

    I created a script to build indexes for my database. I've run it several times and the scrip stops (is shown as cancelled) aftr 20 indexes are built. Is there a limit to the number of indexes available in a database for XE?

    I created this file using an export from the database on another machine.
    I then edited the export file to collect all the "create index" sql statements
    into a single file.
    I am running this file Index.sql using the XE SQL>SQL Scripts window,
    clicking on the script file, and selecting Run.

  • Help to rebuild a badly formed Index.xml file

    From time to time, I receive Numbers documents whose Index.xml file may be read by several programs but which can't be deciphered by Numbers itself.
    My guess is that for some reason, Numbers built a wrong instruction.
    Of course, it's annoying because many users don't backup their documents or use a wrong protocol to backup.
    Never replace an old backup by a new one before checking that the new one is usable is the rule to apply.
    Given that, I built an AppleScript which may help us to rebuild from scratch such a clobbered document.
    Running it upon such a file creates a folder in the Documents folder.
    In this new folder we will find several text files describing every sheet embedded in the document.
    In each of these file, it inserts tags marking delimiting the descriptors of every table.
    It also insert pairs of return characters between every cell descriptor.
    Last not least, it completes the codes describing references to other tables or to other sheet or to other table of other sheet by their "standard" description, the one which is used in the true formulas.
    Useful information, as often in AppleLand, consecutive objects are numbered starting from zero when we are accustomed to number them starting from 1.
    sf:col="0" means column number(0+1) which is column A
    sf:row="0" means row number (0+1)
    Given all these informations, rebuilding a document is quite easy (but it requires a lot of time and is boring for eyes).
    As the script is long and as I am afraid of the oddities which may be introduced by the forum's message parser, the script is not available here but on my iDisk.
    <http://idisk.me.com/koenigyvan-Public?view=web>
    Download:
    ForiWork:For_Numbers:découpe_Index_deNumbers.zip
    I apologize but given a bug of MacOS X 10.5.x, using the script under this operating system is less comfortable than it is under 10.4.x.
    Yvan KOENIG (from FRANCE mardi 26 août 2008 16:16:46)

    HI Balaji,
    Below is the sample xml file which i have saved as test.xml and placed it @ D: drive
    Test.xml:
    <employee>
    <emp>
    <eno>1</eno>
    <ename>Test1</ename>
    </emp>
    <emp>
    <eno>2</eno>
    <ename>Test2</ename>
    </emp>
    <emp>
    <eno>2</eno>
    <ename>Test2</ename>
    </emp>
    </employee>
    Goto Topology >Expand Technologues>right click on XML and select new data source
    in Defination Tab, provide the physical architecture name
    in JDBC Tab, provide the below details
    JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    JDBC URL: jdbc:snps:xml?f=d:\test.xml&d=test.dtd&re=employee&s=TEST&ro=false
    Save it
    Click on Test Connection and again click on test, it should show test connection as "Successfully Test"
    Hope this may helps you
    Regards,
    Phanikanth

  • Help: how to download applet by script file (generate by SCRIPTGEN)

    hi all,
    My card have Javacard 2.1.1, GP 2.0.1. I built a CAP file and generate to SCRIPT file by SCRIPTGEN tool.
    This is my script:
    0x80 0xB0 0x00 0x00 0x00 0x7F;
    // javacard/Header.cap
    0x80 0xB2 0x01 0x00 0x00 0x7F;
    0x80 0xB4 0x01 0x00 0x13 0x01 0x00 0x10 0xDE 0xCA 0xFF 0xED 0x01 0x02 0x04 0x00 0x01 0x06 0x11 0x22 0x33 0x44 0x55 0x66 0x7F;
    0x80 0xBC 0x01 0x00 0x00 0x7F;
    // javacard/Directory.cap
    0x80 0xB2 0x02 0x00 0x00 0x7F;
    0x80 0xB4 0x02 0x00 0x20 0x02 0x00 0x1F 0x00 0x10 0x00 0x1F 0x00 0x0A 0x00 0x0B 0x00 0x1E 0x00 0x0C 0x00 0x3D 0x00 0x0A 0x00 0x0B 0x00 0x00 0x00 0x4D 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x7F;
    0x80 0xB4 0x02 0x00 0x02 0x01 0x00 0x7F;
    0x80 0xBC 0x02 0x00 0x00 0x7F;
    // javacard/Import.cap
    0x80 0xB2 0x04 0x00 0x00 0x7F;
    0x80 0xB4 0x04 0x00 0x0E 0x04 0x00 0x0B 0x01 0x00 0x01 0x07 0xA0 0x00 0x00 0x00 0x62 0x01 0x01 0x7F;
    0x80 0xBC 0x04 0x00 0x00 0x7F;
    // javacard/Applet.cap
    0x80 0xB2 0x03 0x00 0x00 0x7F;
    0x80 0xB4 0x03 0x00 0x0D 0x03 0x00 0x0A 0x01 0x06 0x11 0x22 0x33 0x44 0x55 0x67 0x00 0x08 0x7F;
    0x80 0xBC 0x03 0x00 0x00 0x7F;
    // javacard/Class.cap
    0x80 0xB2 0x06 0x00 0x00 0x7F;
    0x80 0xB4 0x06 0x00 0x0F 0x06 0x00 0x0C 0x00 0x80 0x03 0x00 0xFF 0x00 0x07 0x01 0x00 0x00 0x00 0x1C 0x7F;
    0x80 0xBC 0x06 0x00 0x00 0x7F;
    // javacard/Method.cap
    0x80 0xB2 0x07 0x00 0x00 0x7F;
    0x80 0xB4 0x07 0x00 0x20 0x07 0x00 0x3D 0x00 0x01 0x10 0x18 0x8C 0x00 0x01 0x7A 0x05 0x30 0x8F 0x00 0x06 0x3D 0x8C 0x00 0x05 0x18 0x1D 0x04 0x41 0x18 0x1D 0x25 0x8B 0x00 0x02 0x7A 0x02 0x7F;
    0x80 0xB4 0x07 0x00 0x20 0x21 0x18 0x8B 0x00 0x03 0x60 0x03 0x7A 0x19 0x8B 0x00 0x04 0x2D 0x1A 0x04 0x25 0x73 0x00 0x09 0x00 0x00 0x00 0x00 0x00 0x0F 0x11 0x6D 0x00 0x8D 0x00 0x00 0x7A 0x7F;
    0x80 0xBC 0x07 0x00 0x00 0x7F;
    // javacard/StaticField.cap
    0x80 0xB2 0x08 0x00 0x00 0x7F;
    0x80 0xB4 0x08 0x00 0x0D 0x08 0x00 0x0A 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x7F;
    0x80 0xBC 0x08 0x00 0x00 0x7F;
    // javacard/ConstantPool.cap
    0x80 0xB2 0x05 0x00 0x00 0x7F;
    0x80 0xB4 0x05 0x00 0x20 0x05 0x00 0x1E 0x00 0x07 0x06 0x80 0x07 0x01 0x06 0x80 0x03 0x00 0x03 0x80 0x03 0x02 0x03 0x80 0x03 0x03 0x03 0x80 0x0A 0x01 0x06 0x00 0x00 0x01 0x01 0x00 0x00 0x7F;
    0x80 0xB4 0x05 0x00 0x01 0x00 0x7F;
    0x80 0xBC 0x05 0x00 0x00 0x7F;
    // javacard/RefLocation.cap
    0x80 0xB2 0x09 0x00 0x00 0x7F;
    0x80 0xB4 0x09 0x00 0x0E 0x09 0x00 0x0B 0x00 0x00 0x00 0x07 0x05 0x06 0x04 0x0A 0x07 0x07 0x13 0x7F;
    0x80 0xBC 0x09 0x00 0x00 0x7F;
    0x80 0xBA 0x00 0x00 0x00 0x7F;
    So, when download into card, what would we do?
    In my investigate, something must do in below:
    1) //select INSTALLER
    0x00 0xA4 0x04 0x00 0x08 0xA0 0x00 0x00 0x00 0x03 0x00 0x00 0x00 0x7F;
    2) //set key to open a secure channel
    set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    ==> real APDU of this command? plz suggest me!
    3) // init-update 255
    0x80 0x50 0x00 0x00 0x08 0x9A 0xE5 0x80 0x27 0x9D 0x71 0xE9 0x98 0x00
    // ext-auth plain
    0x84 0x82 0x00 0x00 0x10 0x81 0x49 0x27 0xBE 2E 54 AF 17 26 17 14 1C B0 77 E6 15
    4) // upload CAP file
    5) // install CAP file
    ** In step (2), that means data must be ecrypt before download, it's true?*
    So, when i check in SCRIPT file and CAP file, i saw that data didn't encrypt yet
    ==> what tool could I use to encrypt and these step were full?
    Edited by: hoaibaotre on Mar 2, 2011 9:23 AM

    safarmer wrote:
    As above, CAP files do not get encrypted. The LOAD and INSTALL commands are outlined in the GP card spec. You can also use GPShell to do this for you (including the INIT UPDATE and EXT AUTH steps).So, I understood we needn't ecrypt data. Thank so much. And some questions for you:
    When I use GPShell, my script likes that:
    enable_trace
    establish_context
    mode_201                    // add this line for JCOP 3.1
    enable_trace
    establish_context
    card_connect
    select -AID a000000003000000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    delete -AID D0D1D2D3D4D50101     // delete instance applet AID
    delete -AID D0D1D2D3D4D501          // delete instance package AID
    delete -AID D0D1D2D3D4D50101
    install -file path\to\helloworld.cap -sdAID a000000003000000 -priv 2          // create new instance
    card_disconnect
    release_context
    In open secure channel line:
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Format: open_sc -security  (channel number) -keyind (key index) -keyver (key set version) -mac_key (MAC key) -enc_key (Encrypt key)
    After that, I thought we must give a secure channel for transfer data.
    So, in my script file, need I add a command for that? If it's true, what APDU?
    Thanks,
    HoaND
    Edited by: hoaibaotre on Mar 2, 2011 11:01 AM

  • Error unable to open script file

    I have been using DW8 since it came out. I am running Windows 7. Everything was working fine until I had hard drive failure. Replaced hard drive reinstalled Windows and DW8. Now when I try to insert an image I get the message "unable to open java script file c:\program files\Macromedia\Dreamweaver 8\configuration\objects\common\AccessibleImage.js (error 2)".
    I have done the usual--rename config file--reinstall DW8--clean register and reinstall--run as admin.--run in compatibility with XP SP2, etc. but nothing works.
    Help would be invaluable to me.

    Your version isn't listed here but something on this page may help you...
    http://helpx.adobe.com/dreamweaver/kb/troubleshoot-javascript-errors-dreamweaver-cs4.html

  • Why did my index.htm file generate blank? and other weirdness.

    Here's the story. Maybe someone can tell me where I made my mistake, or what happened. I'm numbering the steps for convenience in discussing this.
    1) I started a new project, a WebHelp project.
    2) I imported content in Word.
    3) I created an index, glossary, and TOC. I used wizards for some of this.
    4) I created a style sheet and applied it to all the topics.
    5) I added a skin from the gallery.
    6) I generated output.
    Then I sent that output to the UI developer on my project. He plugged it in to the web app, and it seemed to work fine. So then:
    7) I opened the project, edited the text, and removed glossary links (because I didn't like how they were working) individually.
    8) I generated a new TOC to match the changed topic structure (minor changes).
    9) I generated another output.
    I sent that output to the UI developer and he said it was blank. I opened index.htm and sure enough, it was indeed blank. In fact, it was Zero KB. I also noticed that four other files were blank: whfform.htm, whform.js, whskin_plist.htm, and whtbar.js.
    So then I decided to start over. I created a new project, imported just the html topic files from the old project, redid the index (in a  hasty and less thorough manner), decided to bail on the glossary for now, did a TOC and sent that to the developer.
    Now the Search pane is totally wonky, showing a list of characters and terms.
    So I am getting frustrated. The developer has tried monkeying around with stuff on his end, but it's not working. So he says, why don't you send me a build with everything?
    The problem is, I have two broken builds. The first one, which for whatever reason has the blank index.htm file (and other blank files), and the second one, which has no glossary, a messy index, and a screwed up search.
    I can't seem to find anyone else having this problem. :-/  Can someone help? 
    Thanks so much,
    Tamarleigh

    I am having the exact same problem, and I think I've figured out what is happening here. There is an issue when mapping Word styles into RH. The person who setup our Word template included a sidehead with conditional text to hide instructor notes when printing participant training manuals. I removed the conditional text, and everything is working fine. You may want to double check to make sure you don't have conditional text in your Word docs. I've uploaded an image with the code below to show how the conditional text looked when the document was linked and generated.
    Check out the code below:
    <table cellspacing="0">
              <tr>
                        <td style="vertical-align: top; padding-left: 0px; padding-top: 0px;
                                   padding-right: 0px; padding-bottom: 0px;" height="800" width="114"><table
                                   cellspacing="0" width="100%">
                                  <tr>
                                            <td style="padding-left: 0px; padding-top: 0px; padding-right: 0px;
                                                       padding-bottom: 0px;"><div v:shape="Text_x0020_Box_x0020_146"
                                                                                                                             class="shape" style="padding: 3.6pt 7.2pt 3.6pt 7.2pt;">
                                                      <p class="WD_InstructorNotesHeading"><span style="background: #ffff00;">Instructor
                                                       Notes:</span></p>
                                                      <p class="WD_InstructorNotesText"><span style="background: #ffff00;">Add
                                                       any additional instructor information into this text
                                                       box.&#160;&#160;It will only appear when hidden text
                                                       is turned on.</span></p>
                                                      <p class="WD_InstructorNotesText">&#160;</p>
                                            </div></td>
                                  </tr>
                        </table>
                        &#160;</td>
              </tr>
    </table>
    Cheers.

  • Renaming the index.htm file

    Folks - I welcome some help on this one!
    I'm running RoboHelp 9, and authoring a help system for a dev group whose buildmeister has requested I rename (if possible) RoboHelp's compiled 'index.htm' file to something else, so as not to conflict with another index.htm file that apparently is part of this software build. I'm assuming this can't be done as a simple File Explorer 'rename', but needs to be defined within the project prior to compiling fresh output. However, I can't find a setting for to accomplish this, and, frankly, don't even know if it's necessary (or possible).
    best,
    Lumpy

    Hello again, Lumpy
    In looking at this thread the following thought occurs to me. If your developer is wanting you to rename your start page, it likely means that your WebHelp is just plopped in with other content. And if that's the case, I'd have to think things are severely disorganized. Normally the help sits in its own folder that is separate from whatever application it supports.
    I know that often developers suffer the God complex and don;t fathom any possibility they are wrong, but it might be worth asking some questions about the arrangement.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Site edit not recognizing index.htm file

    Going through the Site/Edit function to change server
    information, DW told me it can't find the index.htm file. Waiting
    on more information from the host - beside the new IP address, the
    password has been changed and the upload path.
    While I'm waiting on that info want to make sure there's not
    something on my end that could be wrong. The file is in the root
    directory, the name has not changed, and the default file extension
    is set to .htm. Is there something I could have done to cause this?
    The site's been up for years, and I last changed it successfully
    last month or the month before.

    > it can't find the index.htm file
    No, it's telling you that you haven't told it which file is
    your home page.
    Find it, right click, and choose "Set as Home Page". Bada
    bing, bada boom.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "oreillers" <[email protected]> wrote in
    message
    news:gqoi3c$pbj$[email protected]..
    > Going through the Site/Edit function to change server
    information, DW told
    > me
    > it can't find the index.htm file. Waiting on more
    information from the
    > host -
    > beside the new IP address, the password has been changed
    and the upload
    > path.
    >
    > While I'm waiting on that info want to make sure there's
    not something on
    > my
    > end that could be wrong. The file is in the root
    directory, the name has
    > not
    > changed, and the default file extension is set to .htm.
    Is there
    > something I
    > could have done to cause this? The site's been up for
    years, and I last
    > changed it successfully last month or the month before.
    >

  • Need to generate a Index xml file for corresponding Report PDF file.

    Need to generate a Index xml file for corresponding Report PDF file.
    Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
    This is generating pdf successfully.
    As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
    Please see the following attached sample file .
    PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
    Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
    In R12 ,
         We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
         xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
         OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
         docProc.process();
         PrintInvoiceThread :
              out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
                   out.print("<xapi:requestset ");
                   out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
                   out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
                   out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
                   out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
                   out.println("</xapi:indexfile>");
                   out.println("<xapi:document output-type=\"pdf\">");
    out.println("<xapi:customcontents>");
    XMLDocument idxDoc = new XMLDocument();
    idxDoc.setEncoding("UTF-8");
    ((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
    idxDoc = null;
    out.println("</xapi:customcontents>");
         In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
              public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
              public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
              public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
              public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
    Is there any similar java library which do the same thing in fusion .
    Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
              Section 7.11.3.2 Invoking Processors with InputStream .
    But this is not helping much to me. Is there any other document/view-let which covers these thing .
    Appreciate any help/suggestions.
    -anjani prasad
    I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
    PrintInvoiceThread
    InvoiceXmlBuilder
    Control.java

    You can find the steps here.
    http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
    http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/

  • I saved docs from a iMac to a flashdrive but when I plug the flashdrive into an iBookG4 and try to open the docs on the flashdrive, I get this message: Doc 2 cannot be opened. The required index.xml file is missing.

    I saved docs from a iMac to a flashdrive but when I plug the flashdrive into an iBookG4 and try to open the docs on the flashdrive, I get this message: Doc 2 cannot be opened. The required index.xml file is missing. Does this mean that I can't use the info on the flashdrive with the iBookG4 or can I do something to get the required index.xml file?
    Thanks
    jt

    It appears if you write the document with newer version Pages and try to open it older version Pages.

  • I can't open a file on Pages'09 4.1    I get  window that says "The required index.xml file is missing."  How do I get this file open?

    I have a file that I havel been adding to for years. I opened it a week ago but today I tried and I got the window message
    "the required index.xml file is missing"  How do I get this to open?
    I have Pages '09  4.1  Not sure when that was put on or updated.
    Thanks for any help you can give
    Teacher72

    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=308&mforum=iworktips ntrick
    Are you sure you haven't upgraded Pages on your Mac to Pages 5?
    Check your Applications folder and the Applications/iWork folder. You may have 2 versions on your Mac.
    Peter

  • How to Print Post Script Files

    Hi All,
    I am trying to make a utility software in foxpro that could print post script file on:-
    1) Post script printer
    2) Non Post Script printer
    Operating System Windows 95 & above
    Help is requested from all the community members
    Reagards
    Harsh

    PostScript printer - send it to the printer port e.g. LPT1: with a simple copy.
    Non-PostScript printer - you'll need to buy a PostScript RIP, or perhaps use Acrobat Distiller to convert the PostScript to PDF, then print the PDF with Acrobat's API - see the Acrobat SDK. (This is not possible with the free Reader).

  • We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double

    We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double clicked in Mac 10.6.7 at out clients location, its not opening. For your information the client is able to open this same application by double clicking on index.swf file. The main problem is that client is not able to open the application using index.app file at their office whereas we are able to do so at our office. Can anyone give some suggestions to sort this problem?

    The most common reason is different versions of Flash, or different versions of web browsers used.  Some users may elect to not have Flash installed at all because of the processor overhead of Flash.  If you are going to make an application for a client, check what operating system and browser versions they are using first.  Then determine if a stand alone application is required, or if they have the necessary plugins to run specific browser enhanced code.
    P.S. MAC is an acronym for Media Access Control.  Mac is the shorthand for Macintosh, the operating system and computers made by Apple Inc.

Maybe you are looking for

  • Illustrator and Windows 8.1

    I use Adobe Illustrator CS4. I just updated to Windows 8.1 and the colours in Illustrator are now very pale and dull. If I move the design to another program, the colours are bright so the problem must be something with Illustrator...

  • Simple WebService Creation using JDeveloper 11.1 Technology Preview 2

    Hi, I like the way JDeveloper simplifies the web service creation using the wizards and allows to test the web services from the IDE itself. I have the following issues when I tried the step-by-step tutorial (http://www.oracle.com/technology/obe/obe1

  • Is there a change in FF8 for filenames in UTF-8 sended as attachment

    I send files with non-ASCII-Characters in their filename to the browser.<br /> I use Content-Disposition: attachment; <nowiki>filename*="utf-8''myfilename"</nowiki>.<br /> This worked well for FF7 and below.<br /> In FF8 the filename is ignored (Linu

  • How do I know if I have iSynch on my Mac?

    Can anyone tell me how I know whether I have iSynch on my Mac and if I do how to start it up?

  • Album Artwork Chronically Loses Album Artwork

    This has been a problem with my last three iPods (don't know why I keep getting them considering, I suppose it's because everything else works great) and now it is happing with my iPhone. I will have them for months and everything is hunky dory. Then