Merging different text files

I am making a year book for wich I have many Word files and pictures. I think the data merge should be a perfect way to bring all these different texts and photo's into my lay out. But the text i can not get it to work. I can get the pictures to work but somehow i cannot load the different text files into the lay out? Can anyone tell if this is possible and how? thnx a lot (PS I am working with CS4)

Here is one from
Peter Kahrel
// Description: Place multiple textfiles as one story
#target indesign
preset = '/d/test/*.rtf';
app.wordRTFImportPreferences.useTypographersQuotes = true;
app.wordRTFImportPreferences.convertPageBreaks = ConvertPageBreaks.none;
app.wordRTFImportPreferences.importEndnotes = true;
app.wordRTFImportPreferences.importFootnotes = true;
app.wordRTFImportPreferences.importIndex = true;
app.wordRTFImportPreferences.importTOC = false;
app.wordRTFImportPreferences.importUnusedStyles = false;
mask = prompt ('Enter a file path/mask.\r\r' +
    'Examples:\r' +
    'd:\\books\\test\\*.rtf   /d/books/test/*.rtf', preset);
if (mask == null) exit();  // Cancel pressed
ff = Folder (File (mask).path).getFiles (File (mask).name);
if (ff.length > 0)
    placed = [];
    missed = [];
    tframe = app.documents.add().textFrames.add({geometricBounds : [36, 36, 400, 400]});
    placedstory = tframe.parentStory;
    app.scriptPreferences.userInteractionLevel =
        UserInteractionLevels.neverInteract;
    pb = initprogressbar (ff.length, 'Loading');
    for (i = 0; i < ff.length; i++)
        pb.value = i;
        try
            placedstory.insertionPoints[-1].place (ff[i]);
            placedstory.insertionPoints[-1].contents = '\r\r';
            placed.push (ff[i].name);
        catch (_)
            missed.push( ff[i].name );
    app.scriptPreferences.userInteractionLevel =
        UserInteractionLevels.interactWithAll;
    inform = '';
    if (placed.length > 0)
        inform = 'Placed ' + ff.length + ' files (in this order):\r\r' + placed.join ('\r');
    if (missed.length > 0)
        inform += '\r\rCould not place:\r\r' + missed.join ('\r');
    delete_empty_frames ();
    alert( inform );
else
    alert (mask + ' not found.');
// End
function delete_empty_frames ()
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = '\\A\\Z';
    var empties = app.activeDocument.findGrep (true);
    for (var i = 0; i < empties.length; i++)
        empties[i].parentTextFrames[0].remove()
function initprogressbar (stop, title)
    progresswindow = new Window('palette', title);
    progressbar = progresswindow.add ('progressbar', undefined, 1, stop);
    progressbar.preferredSize = [200,20];
    progresswindow.show ()
    return progressbar;

Similar Messages

  • Downloading two different text files using gui_download

    Hi Folks,
    I have two internal tables.itab1 and itab2.Generally in  most cases I have to download only the data in itab1 as a text file using Gui_download.In some cases if a particular condition is satisfied I need to download both itab1 and itab2 data as two different text files using gui_download.To achieve this I had called the gui_download twice as I have to pass two different internal tables.
    But I am getting only itab1 textfile and not itab2 textfile.
    In the selection screen I am giving the path as c:\..
    Kindly let me know where I am going wrong.
    K.Kiran.

    Hi
    You keep the both files in a ITAB and in the loop of that Itab use GUI_DOWNLOAD to download the two files
    data: begin of itab,
              file like rlgrap-filename,
            end of itab.
    In initialization event
    put the two files into this ITAB.
    loop at itab
    call function gui_download.
    endloop.
    check like this
    Regards
    Anji

  • I cant text flow using 3 different text files on the same document?????

    Im starting out with 3 different files of text saved as "tab delimited text" from excel, I open a document in ID with 107 pages and create 3 boxes in the master on top of a pdf. I then override all 107 pages so that the text I insert will flow to the next page and so on, once I paste the 2nd text file into the next text frame it skips the original 107 files and starts flowing into new pages. Im ready to pull my hair out, I have been trying to figure this out for 2 hours. I dont know what to do at this point. I think Im getting a migraine.
    I would have done a data merge on 2 of the files but the third HAS to be text flow (which gives me the same problem above) because it has to be physically changed to fit each page.

    Are you Placing the text from an external file, or pasting it from the clipboard?
    If Placing, move the loaded cursor inside one of the master frames on the first page, hold down the Shift key and click, being sure the cursor is not on any sort of guide. The entire text file will flow using the master text frames, and ID will add all the require pages to place all the text.
    If pasting, you can either override the frame on the first page only, or make a temporary first frame on the pasteboard. Paste into this frame, which will result in a red plus sign in the bottom right corner of the text frame indicating overset text. Switch to the Selection tool (black arrow) and click on the plus sign to pick up the overset text. Hover the new loaded cursor over the frame on the second page, or over the first page as above if you used a temporary frame, hodl the Shift key and click. Delete the temporary frame, if you used one, and the text will reflow to start in the first real frame, but you may have to pick up overset again in the last frame due to the reflow.

  • Merge two text files

    Need your help with merging two text source files into single table.  Each text file is single column containing names.  Let's say that file one is list of members in DEPARTMENT A and second file members of DEPARTMENT B.  Text files look
    something as follows:
    Filename: DEPARTMENT_A
    NAME (header)
    Steve
    Joe
    Mary
    Filename: DEPARTMENT_B
    NAME (header)
    Ron
    Joe
    Susie
    Ultimately, I need the resultant table data to look like this:
    NAME     DEPARTMENTS
    Steve     A
    Joe        A, B
    Mary      A 
    Ron        B
    etc.
    I think the solution involves derived columns, pivot, coalesce, but can't figure out how to put them together.  What do you recommend?  Thanks.

    You need a data flow task
    Inside that have two flat file sources connecting to both files. Following that have a derived column task to add department information (A,B). use a union all transform to merge both the inputs and finally use OLEDB destination to dump the result into table
    with two columns Name and Department.
    Then add a execute sql task to do update as below
    UPDATE t
    SET Department = Department + ', B'
    FROM Table t
    WHERE Department = 'A'
    AND EXISTS (SELECT 1
    FROM Table
    WHERE Name = t.Name
    AND Department = 'B'
    DELETE t
    FROM Table t
    WHERE Department = 'B'
    AND EXISTS (SELECT 1
    FROM Table
    WHERE Name = t.Name
    AND Department = 'A, B'
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to send mail to different text file

    Hello experts.
    I follow the example in the manual under
    What I have discovered is that it will send email no matter which Organization a user is created in. e.g. Top or Top:MyOrg sent to text file ie Notification file( I use text file and not the SMTP server) and IDM 6.0
    I only want Email sent if user is created in Top:MyOrg. I want it to sent to another text file.....how to customizes the workflow....

    Hi..........
    I follow the example in the manual
    What I have discovered is that it will send email no matter which Organization a user is created in. e.g. Top or Top:MyOrg sent to text file ie Notification file( I use text file and not the SMTP server) and IDM 6.0
    I only want Email sent if user is created in Top:MyOrg. I want it to sent to another text file.....how to customizes the workflow....
    Thaks in advance

  • Saving text file at different rate

    Hello all,
    I am a little bit new to LabView, so maybe this question is trivial, but is giving me a lot of pain.
    I want to continuously save a given string at two different rates; in the example provided these rates are at every 500 ms and 50 ms, in two different text files (one for each rate). I tried to use while structured loops for this purpose. When I use only one, it works fine, but when I use both of them at the same time, it seems Labview limits both paths to the lowest speed, which in this case is obviously 500 ms, and eventually I obtain two exact files with the string saved at 500 ms period.
    How can I make it work?
    Thanks in advance.

    You still have ways to go for a more reasonable code.
    For example, typically you want to open the files before the loop, keep appending inside the loops, and close the files after the loop, when the program stops. Now you don't even need to set the file position inside the loops because it will automatically keep writing right after the previous write position. This is much more efficient than to open and close the file with each iteration.
     

  • Is it possible to export all information (metadata, list of pictures within each album or project) about ALL pictures in Aperture to text files, in a single operation?

    I have downloaded a trial version of Aperture because I would like to switch from using Picasa and gimp to using Aperture.  I already know that I want to use Aperture, and that I cannot learn how in 30 days.  I want to use the 30 days to see if I can solve a different problem: bulk export of all information except edits and versions from Aperture.
    I want to avoid locking information (other than than the edits and version information that Aperture maintains) about my photos into any one piece of software.
    Picasa stores a copy of almost all its information in text filies (mostly XML or .ini format) that are scattered through its picture library.  These files can be scanned and found by use of Mac OS X tools that are availabe in Terminal (at the bash command line).  All of the information about albums, faces, etc can be exported by a single command (after wtiting the progams that the command will initiate.  I have not yest found any similar files in Aperture.
    Aperture supports the export of EXIF and IPTC metadata, but only for selected photos, and does not appear to support the export of other information at all.
    What I would like to do with a single operation, from either Aperture or Terminal, is to export the entire arrangement of phost ins albums and projects, lists of albums, projects and phots with all metadata (including added keywords) attached to each, and for referenced photos, the external file name.  I do not care if would be in one file or many different text files, because Mac OS X provides all the tools I would need to extract the information I would want from any number of text files.
    This would allow me to reconstruct all of the information about my photos (except for edits and versions) outside Aperture, and to use that info in a database outside Aperture.  I would then be able to use Aperture while still being able to do everything that I could do with Picasa.
    The most helpful form of an answer to this question might be a list of places to look in the Apple support and Apple developer documentation.  It is difficult to teach me anything complicated, but I am fairly good at figuring out things from documentation.

    The following script recursively lists the content of an Aperture library.  The output is simple, for demonstration puposes, but could be modified to XML.  If the XML were that of a PLIST, the Apple Property List viewer oculd be used to diaplsy the output.
    A simlar script produces all of the keywords and tags for all of the images in Aperture.
    The scripts run much faster in the shell than in the AppleScript Editor bcause the shwll produces no debugging or monitoring information.
    #!/usr/bin/env osascript
    (*    Demo: list the containment hierarchy in Aperture, starting from libraries.
        Runs from AppleScript Editor, or as a shell command
        References:
            Aperture 3 AppleScript Reference Manual,
                particularly the Containment Diagram in Appendix A
                from the link on "Aperture Resources" web page at http://images.apple.com/aperture/resources/
            Aperture AppleScript Dictionary, accessed from AppleScript Editor
        Ian E. Gorman
    global outputFile
    set outputFilePath to "/Users/ian/prj/sw/AppleScript/ApertureContainment.txt"
    global lineEnd
    set lineEnd to "
    global tabChar
    set tabChar to "    "
    on writeText(str)
        write str to outputFile
    end writeText
    # Open the file, guarantee closure after any error, and list the contents of Aperture libraries
    try
        set outputFile to open for access POSIX file outputFilePath with write permission
        set eof outputFile to 0 # truncate the file, if it already exists
        my listAll()
        close access outputFile
    on error errorMsg number errNum from offendingObj partial result resutList to expectedType
        try
            display alert "Operation failed, attempting to close output file" & lineEnd & "Error number " & errNum & ": " & errorMsg
            close access outputFile
            display alert "Operation failed, but output file has been closed"
        on error
            display alert "Operation failed, also failed to close output file"
        end try
    end try
    # top-level in Aperture
    on listAll()
        tell application "Aperture"
            repeat with eachLibrary in libraries
                my listLibrary(0, eachLibrary)
            end repeat
        end tell
    end listAll
    on listLibrary(level, thisLibrary)
        local newLevel
        set newLevel to 1 + (level as integer)
        tell application "Aperture"
            my writeText((newLevel as rich text) & tabChar & "library" & tabChar & (name of thisLibrary) & lineEnd)
            repeat with eachAlbum in albums of thisLibrary
                my listAlbum(newLevel, eachAlbum)
            end repeat
            repeat with eachFolder in folders of thisLibrary
                my listFolder(newLevel, eachFolder)
            end repeat
            repeat with eachProject in projects of thisLibrary
                my listProject(newLevel, eachProject)
            end repeat
            repeat with eachImageVersion in image versions of thisLibrary
                my listImageVersion(newLevel, eachImageVersion)
            end repeat
        end tell
    end listLibrary
    on listAlbum(level, thisAlbum)
        local newLevel
        set newLevel to 1 + (level as integer)
        tell application "Aperture"
            my writeText((newLevel as rich text) & tabChar & "album" & tabChar & (name of thisAlbum) & lineEnd)
            repeat with eachImageVersion in image versions of thisAlbum
                my listImageVersion(newLevel, eachImageVersion)
            end repeat
        end tell
    end listAlbum
    on listFolder(level, thisFolder)
        local newLevel
        set newLevel to 1 + (level as integer)
        tell application "Aperture"
            my writeText((newLevel as rich text) & tabChar & "folder" & tabChar & (name of thisFolder) & lineEnd)
            repeat with eachAlbum in albums of thisFolder
                my listAlbum(newLevel, eachAlbum)
            end repeat
            repeat with eachFolder in folders of thisFolder
                my listFolder(newLevel, eachFolder)
            end repeat
            repeat with eachProject in projects of thisFolder
                my listProject(newLevel, eachProject)
            end repeat
            repeat with eachImageVersion in image versions of thisFolder
                my listImageVersion(newLevel, eachImageVersion)
            end repeat
        end tell
    end listFolder
    on listProject(level, thisProject)
        local newLevel
        set newLevel to 1 + (level as integer)
        tell application "Aperture"
            my writeText((newLevel as rich text) & tabChar & "project" & tabChar & (name of thisProject) & lineEnd)
            repeat with eachAlbum in albums of thisProject
                my listAlbum(newLevel, eachAlbum)
            end repeat
            repeat with eachSubfolder in subfolders of thisProject
                my listSubfolder(newLevel, eachSubfolder)
            end repeat
            repeat with eachImageVersion in image versions of thisProject
                my listImageVersion(newLevel, eachImageVersion)
            end repeat
        end tell
    end listProject
    on listSubfolder(level, thisSubfolder)
        local newLevel
        set newLevel to 1 + (level as integer)
        tell application "Aperture"
            my writeText((newLevel as rich text) & tabChar & "subfolder" & tabChar & (name of thisSubfolder) & lineEnd)
            repeat with eachAlbum in albums of thisSubfolder
                my listAlbum(newLevel, eachAlbum)
            end repeat
            repeat with eachSubfolder in subfolders of thisSubfolder
                my listSubfolder(newLevel, eachSubfolder)
            end repeat
            repeat with eachImageVersion in image versions of thisSubfolder
                my listImageVersion(newLevel, eachImageVersion)
            end repeat
        end tell
    end listSubfolder
    on listImageVersion(level, thisImageVersion)
        local newLevel
        set newLevel to 1 + (level as integer)
        tell application "Aperture"
            my writeText((newLevel as rich text) & tabChar & "image version" & tabChar & (name of thisImageVersion) & lineEnd)
        end tell
    end listImageVersion

  • Reading text file, Replace string, Write to new file....

    I'm kind a lost of on this problem. Using the BufferedReader class and BufferedWriter class, develop an application that reads lines of text from a file. Replace any occurrence of the word *?the?* with *?JAVAJAVA?* and change all characters to upper case before writing each line to a different text file named outfile.txt. Finally, have your application use the appropriate method on the File class to return the absolute path of the outfile.txt file and output the path to the screen.
    * Created December 10, 2008
    * @author Fausto Rivera
    * Colorado Technical University - Online Campus
    * IT271-0804B-02 Intermediate Object Oriented Programming II
    * Phase 2 IP
    * Instructor: Cheryl B Frederick
    import java.io.File;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    public class FRiveraReader {
          public static void main(String[] args) {
          // instantiated a new application object to initialize the application
          FRiveraReader application = new FRiveraReader();}
    //      application.getReadfr();  // call to openFile method
    //      application.doWritefr(); // call to readRecords method
    //      application.closeFile();  // call to closeFile method
    public FRiveraReader(){}
      public void getReadfr (String friveraInfile, String fr []){
       int i;
       File fileName = makeAbsoluteFilename(friveraInfile);
       try{
        BufferedReader reader = new BufferedReader(new FileReader(fileName));
        String line = reader.readLine();
         i=0;
          while (line != null) {
           fr[i] =line;
           line = reader.readLine();
        i++;
      reader.close();
    catch(IOException e) {
    System.out.println("Error with reading file:" + friveraInfile);
    }//end of getOrder method
    public void doWritefr(String friveraOutfile, String fw[]){//String name of file, String array to be written
    int i;
    File fileNameout = makeAbsoluteFilename(friveraOutfile);
    try {
    BufferedWriter writer = new BufferedWriter(new FileWriter (fileNameout));
      i=0;
      while (fw[i] != null) {
       writer.write(fw[i] + "%n"); //need delimiters between data in file;also, reader reads a line
       i++;
      writer.close();
    catch(FileNotFoundException e) {
    System.out.println("File not found");
    catch(IOException e) {
    System.out.println("Error with reading file:" + friveraOutfile);
    }//end of getOrder method
    private File makeAbsoluteFilename(String friveraOutfile)//these 2 classes used to resolve file name
            File file = new File(friveraOutfile);
            if(!file.isAbsolute()) {
                file = new File(friveraOutfile);
            return file;

    I have modified my code as far as being able to create a text file, write to string, and change to upper case. Now, how can I connected input to the output stream and then replace all the instances of the string "the" for the string "JAVAJAVA"? When the file is created, it goes into a loop writing the following:
    nJAVA.IO.BUFFEREDWRITER@19821F%nJAVA.IO.BUFFEREDWRITER@19821F%nJAVA.IO.BUFFEREDWRITER@19821F%nJAVA.IO.BUFFEREDWRITER@19821F%nJAVA.IO.BUFFEREDWRITER@19821F%nJAVA.IO.BUFFEREDWRITER@19821F%
    Here is my modified code
    import java.io.File;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    public class FRiveraReader {
    public FRiveraReader() {}
    private static final String inFile = "C:\\Documents and Settings\\Fausto Rivera\\My Documents\\NetBeansProjects\\Rivera_F_IT271_0804B_02_PH2_IP\\friverainfile.txt";//the path name of your file
      public void myReadfr (){
       try {
        BufferedReader reader = new BufferedReader(new FileReader(inFile));
        //String "JAVAJAVA" = String "the";
        System.out.println(inFile);
        String line = reader.readLine();
          while (reader != null) {
           line = reader.readLine();
      reader.close();
    catch(IOException e) {
    System.out.println("Error with reading file:" + inFile);
    }//end of myReadfr method
    public void myWritefr(){//String name of file, String array to be written
    File outFile = new File ("C:\\Documents and Settings\\Fausto Rivera\\My Documents\\NetBeansProjects\\Rivera_F_IT271_0804B_02_PH2_IP\\myoutFile.txt");
    try {
    BufferedWriter writer = new BufferedWriter(new FileWriter (outFile));
    String newline = writer.toString() .toUpperCase();
      while (writer != null) {
       writer.write(newline + "%n"); //need delimiters between data in file;also, reader reads a line
      writer.close();
    catch(FileNotFoundException e) {
    System.out.println("File not found");
    catch(IOException e) {
    System.out.println("Error writing file:" + outFile);
    }//end of getOrder method
    private File makeAbsoluteFilename(String myoutFile)//these 2 classes used to resolve file name
            File file = new File(myoutFile);
            if(!file.isAbsolute()) {
                file = new File(myoutFile);
            return file;
      }Edited by: FRiveraJr on Dec 17, 2008 12:10 PM

  • Use splitter to create multiple text file

    Hello I have one view as source and would like to create multiple target text files based on different condition. What I am doing is that I am using SPLITTER which contain one INGRP1 and three OUTGRP( nameley TR1, TR2 and TR3) and one default REMAINING_ROWS ( what is the purpose of the REMAINING_ROWS?). So I mapped view to INGRP1 of the splitter and then added the different SPLITT condition in the condition wizard, for example :
    for TR1
    COMMISSION_TYPE='P' and
    rownum <= 65000
    for TR2
    COMMISSION_TYPE='P' and
    rownum > 65000
    and for TR3
    COMMISSION_TYPE='A'
    After this since I have to create 3 comma delimted text files, I have used 3 expression for each individual splitt condition. In the expression what I am doing is that I am just concating all the fileds and then output of each expression goes to three different text files.
    When I am deploying the mapping, it is coming up several errors such as :
    1): PLS-00201: identifier 'COMMISSION_TYPE' must be declared
    (2): PL/SQL: Statement ignored
    (3): PLS-00201: identifier 'COMMISSION_TYPE' must be declared
    (4): PL/SQL: Statement ignored
    (5): PLS-00201: identifier 'COMMISSION_TYPE' must be declared
    (6): PL/SQL: Statement ignored
    (7): PLS-00201: identifier 'START_INDEX' must be declared
    (8): PL/SQL: Statement ignored
    (9): PLS-00201: identifier 'T_EXPR_ASSET_1_OUTPUT_ASSET$0' must be declared
    (10): PL/SQL: Item ignored
    (11): PLS-00201: identifier 'T_ROWKEY_SPLIT_2' must be declared
    (12): PL/SQL: Item ignored
    (13): PLS-00201: identifier 'T_CPPASSET_0_OUTPUT_ASSET$0' must be declared
    (14): PL/SQL: Item ignored
    (15): PLS-00801: internal error [21076]
    (16): PL/SQL: Item ignored
    (17): PLS-00801: internal error [21076]
    (18): PL/SQL: Item ignored
    (19): PLS-00801: internal error [21076]
    (20): PL/SQL: Item ignored
    Why I am getting these errors, why OWB generated code could not identify COMMISSION_TYPE filed?
    Please help me.
    Suhail

    I am really very very sorry, its my fault. I was not mapping COMMISSION_TYPE from view to splitter.

  • Importing and sorting text file

    I am importing a text file. Now i need to run and if function, so I can sort the text data between positive and negatives.
    import java.util.Scanner;               //Needed for Scanner Class
    import java.io.*;                              // Java API Class that allows you to import files
    The Transactions.java program was designed to import text file (transactions, sort
    the data with values of "<= 0" and ">=1" as withdrawals and deposits respectively.
    Then the program will output the data into two different text files: Deposits.txt
    and Withdrawals.txt.
    public class Transactions
    public static void main (String[] args) throws IOException
    String display = "test";
         //Create a Scanner object for keyboard input.
    Scanner keyboard = new Scanner(System.in);
         //Get the file name.
    System.out.print("Please enter the name of the file you are trying to acces:");
    String filename = keyboard.nextLine();
         //Open the file.
    File file = new File(filename);
    Scanner inputFile = new Scanner(file);
              //Read lines from the file until none are left.
    while (inputFile.hasNext())
              //Close the file
    inputFile.close();
    }

    euvin wrote:
    the program will call a text file. the text file has a range of numbers. from negative to positives. i can get the program to import the data; however, i need these data to be sorted by <= 0 & >= 1When you read the lines from the text file they will be read as Strings. You will need to parse those Strings to a number (Integer or Float/Double depending on if the numbers are whole numbers or decimals). The Double and Integer API pages give you the methods you need to use to convert the String to the correct number.
    Edited by: amp88 on Feb 16, 2009 7:28 AM

  • Write to two text files

    Hello Everyone,
    I would like for my VI to write to two different text files. I have it now where I can write the two different types of data to one text file. When I adjusted it to write to two different files, it makes me open the two files where I would like to save the data but it doesn't record anything.
    Thank you,
    Corina

    Could you please post either an image of your code or the VI itself?  I think that it will be easier to tell what is going on with a visual aid.  Thanks.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • Import text files into excel spreadsheet using automator

    Hello,
    I am trying to import a number of different text files into a single spreadsheet.  The content of each of the text files is the same (i.e. Same number of columns to be made) and each item is spac delimited.  I am trying to make it so that each of these text files will be entered into a single spreadsheet.  That is, one text file corresponds to one row of data and the second text file would correspond to the second row of data in the excel sheet.  Any ideas on how to do this?  I imagine this will require some sort of applescript but I'm not familiar with applescript at all!
    Thanks for your help!

    By the way, if anybody else has the same question I had:
    After trying this on my own, I recommend against doing what I did. I used the Excel macro language, Visual Basic for Applications. There are documented features in the Mac version that simply do nothing. I wasted a lot of time trying to find out why they wouldn't work. In other words, the online help told me they worked, but they didn't. I ended up with a combination of Automator and VBA and had to write my own code in VBA to duplicate the functionality that was supposed to be there.
    Also, it's my understanding that VBA on the Mac is a dead language and that Microsoft is concentrating on Excel's Applescript support, which appears to contain most (or all) of the functionality of VBA.
    I hope this helps someone else avoid making the same mistake I did!

  • Scheduling multiple tab BO XI3 report needs to save into multiple text file

    Hi,
    I have BO XI 3 Desktop Intelligence reports, those reports contains multiple tabs. Once after scheduling these reports the output needs to save as different text files (each tab as separate text file). Generally when select output as text file we will get the text file with the data of current tab, but in this scenario I want all the tabs data into different text files. I guess we can do this with macro. But I am not good in macro development, hope somebody can help me.
    Could you please help out for the same!
    Thanks,
    Rama

    Thanks Dan.. I made chenges in code as per your suggestion.. its working fine in DeskI -> local PC
    But this is not working in InfoView level... when i scheduled the same report its not saving into multiple text files... can you please have look...
    macro code as follows:-
    Public Sub SaveAsText()
    Dim StrTxtPath As String
    Dim BusDoc As busobj.Document
    Set BusDoc = ThisDocument
    Dim BusRep As Report
    Dim I As Integer
    On Error GoTo ErrHandler
    'StrTxtPath = "
    xxxx.xxx.xxx.com\common\Reporting\"
    StrTxtPath = "D:\Business Objects\Test_Macro\"
    For I = 1 To BusDoc.Reports.Count
    Set BusRep = BusDoc.Reports.Item(I)
    BusRep.ExportAsText (StrTxtPath & BusRep.Name)
    Next I
    ErrHandler:
    Exit Sub
    End Sub
    When i run this macro through DeskI.. its saving the report as multiple .txt files with respective number of tabs... but the same thing is not working when i tried in scheduling...
    Can you please suggest me what are the changes needs to be done...
    Thanks in Advance
    Thanks,
    Rama

  • IDCS6 MACOSX JS: Data Merging many txt files one after another

    Hello everybody.
    I have a situation where I have to data-merge many text files to the one actual indesign "base" file. The formats of the databases are all the same, the point of difference is a code in the second field of the database that refers to a mailing zone (not a zip/postcode, a "distribution centre" code that has 56 or so possibilities). I would prefer to data merge one file and then somehow split the resulting PDF via Acrobat, but the length of the resulting mailing zones is inconsistent and something that can't be done though the "split document" feature in acrobat.
    The database starts out as one massive file but using a one-line  code, can be split into its mailing zones into separate text files.
    My ultimate question: is there any way to data merge more than one file at once (e.g. one after another) and give them their names based on the names of the input text file?
    Ole Kvern had a script to Data Merge one file without the UI. I have altered the last line slightly so that it outputs to a PDF based on [High Quality Setting]:
    if(app.documents.length != 0){
            var myDocument = app.activeDocument;
            app.dataMergeOptions.removeBlankLines = true;
            //Select a source file.
            var myDataFile = File.openDialog("Select a data file")
            var exported = "file location(redacted for the sake of this post)"
            if(myDataFile != ""){
                    myDocument.dataMergeProperties.selectDataSource(myDataFile,);
                    myDocument.dataMergeProperties.exportFile(exported,"[High Quality Print]",);
    I figure the answer has to do with the variable "myDataFile" and rather than being simply open a dialog, it would be somehow selecting an array of text files, but this is where I am out of my depth.
    Any insights or other thoughts that may not involve trying to do many merges at once but may somehow revolve around one large merged PDF?
    Many thanks
    Colin

    I've answered my own question, but the answer lies outside of Adobe InDesign – it uses bookmarks within Adobe Acrobat.
    1) Data Merge the art/data to one large PDF file.
    2) In the resulting PDF file, manually search out the mailing zones and apply bookmarks to each first instance only of each mailing zone. In this case, it is a manual process of find/replace to find one of 70 possible mailing zones that may be used in any database. Each bookmark should be named with its respective code. It is a manual process, but it would take 5 minutes so this is acceptable.
    3) Using "Split Document" from the pages panel, make sure the "top level bookmarks" radio button is checked, and in the Output Options make sure that the "Use bookmark names for files" radio button is checked.
    I'm aware that this was a rather obscure question that only a fraction of users on this forum may wish to know an answer for, but hopefully this workaround helps someone else in a similar situation.
    Colin

  • Merge text file with condition

    I have two text files (report1.txt and report2.txt) that I want to merge with conditions:
     - Matching rows that have same "ID" and same "TranVal", will keep only one instance
     - Mismatching rows that have same "ID" both rows from 2 file, but column "TranVal" has different value, then the row from report2.txt will replace row in report1.txt
     - Any "ID" that exists in one textfile but not the other one, will be copied to the final merged file
    report1.txt:
    TranDate,ID,TranVal,Comment
    061211,9840,40,done
    061211,9841,30,done
    061211,9842,28,done
    report2.txt:
    TranDate,ID,TranVal,Comment
    061211,9840,40,done
    061211,9841,89,done
    061211,9843,25,done
    Final result should be:
    merge.txt:
    TranDate,ID,TranVal,Comment
    061211,9840,40,done
    061211,9841,89,done
    061211,9842,28,done
    061211,9843,25,done

    Hi,
    I just checked Import-Csv option. I will be able to manage this problem if i can get it in CSV format and work with objects, BUT the problem is in my real file
    the file-format is different which is not comma-separated, instead have "-" as seperator. To simplify the problem i used comma in my question.
    TranDate,ID,TranVal,Comment
    061211-9840-40-done
    Could
    you suggest me if there is any way to convert "-" separators to CSV?

Maybe you are looking for

  • Importing text file into 2D char array

    Hey folks. I've aged a few years trying to figure this project out. Im trying to make a crossword puzzle and am having problems importing the answer letters into a 2D array of 15*15. The text file would look something like this: LAPSE TAP RAH AVAIL O

  • Query structure problem

    Hi, I need to create a query with a column structure described bellow: Key figure .................|.. 0Quantity .....|.. 0Amount Posting period ...........|.. # .................|.. Var1 (5,6, 7, ... 12) The problem is that the column 0quantity shou

  • E540 - update to BIOS 1.61 not working

    This forum was GREAT help when I encountered the not-rebooting properly problem after installing the Lenovo Small Business stuff - initially I was having to disconnect the CMOS battery each reboot, but after uninstalling that software, things seemed

  • PSE 11 TEXT problem.  Underlining when I type using the TEXT tool.

    I'm trying to create my signature in PSE 11.  When I use the TEXT tool instead of it displaying the letters I type I'm getting nothing but underlining. If I type the letter L instead of the L I get_.  Thanks. 

  • Why Do I Keep Getting This Message???

    All of a sudden and without me changing any preferences, I have started to get a message that tells me to go online to read the email even though the account is online. This is what the message looks like: +The message from Facebook <[email protected