Text file to XML integration.

Hi,
My Text file is picking from source but not writing to target. Getting "RuntimeException in Message-Mapping transformatio~". But when i test message mapping it showing success. All the fields are mapped properly and Conversion is also correct, what else could be problem.
Your solution will be apreciated.
Ranjeeth.

Hi Ranjeeth,
1) As per the question, your input is text file. Do you have used content conversion to get the xml file from the text file.
2) Test the mapping in the repository - take the input from SXMB_MONI(input message) and give this data as a input to your Message mapping.
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Regards,
Moorthy

Similar Messages

  • Reading String (Name-Value) from text file into XML

    Hi,
    I have a requirement for reading a text file and converting each entry of that text file into XML format. I have not came across such thing yet so looking for some ideas. I am using SQL Server 2005 and here is a sample entry from my source text file,
    Jun 4 14:31:00 zzzz64x02 fff:
    INPUT(ty=XYZ,Prefix=15063,dn=78787878787878,sgk=100.139.201.48,xxn=87878,ani=656565656565,ogrp=F7ZX05,ogtxt=NNNNN,ogx=NNNNN,oci=0xe00ac,ogi={NOA=INT,BC=1,SIG-TYPE=ZIP});
    PROCESS(ty=0x100000,cu=32880,Name=XOXOXOX,pc=88017,pd=24,dd=880175,pk=880175,rd=115472,ca=BGD,reg=RW,cdp=1,ai=245359,grp=2648,sl=9);
    OUTPUT(ty=XXXX,ret=0,rl=
    {i=1,su=99999,rizID=61084,skid=06,truckgp=1084,dd=8801,dn=78787878787878}
    I will get multiple entries like this in my source text file which I have to convert into XML (using TSQL).
    Any help will be useful.
    Regards.
    'In Persuit of Happiness' and ..... learning SQL.

    And I'm telling you that this is a bad option. You would use the vaccum cleaner to wash the dishes, would you?
    If you for some reason would do this task in SQL Server, you would implement it as a CLR stored procedure, but from what you have said I don't understand why you would do this server-side at all.
    What's wrong with the current C# solution?
    Erland Sommarskog, SQL Server MVP, [email protected]
    Got it.  I was just looking for the available options, nothing wrong with my C# solution. And yes, I don't use vacuum cleaner to wash dishes.
    'In Persuit of Happiness' and ..... learning SQL.

  • Message Mapping Error in Text File to XML file Scenario

    Hi Gurus,
    This is Sudheer...I am New to SAP-PI......
    Below link is File to File Scenario(Text File to XML File)...
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/basicFileAdapterContentConversion
    I am facing Message Mapping Error....I am not able to map the fileds...
    Please help me.
    -Sudheer

    Thanks Shabarish & Manisha for your reply....
    Ya I am getting error while I am testing in IR....
    I dont know how to map the fields that shown given below...
           Message Type         ---         Message Type
                 Record                              Employee
                     Header                                 EmployeeID
                         Key                              Name
                         EmpID                          Company
                         Name                            Phone
                         Company                       Prior_Employer
                         Phone                               Company         
                      Detail                                   Location
                          Key
                          Company
                          Location

  • How to convert a Form to a Text file and XML file?

    Hi:
    I want to convert a Form to a Text file and XML file,but I don't know how convert?
    Please help!
    Oracle Form Builder V10.1.2.0.2
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Thanks in advance!

    ..or follow the steps in Mtalink note; Doc ID: Note:196924.1
    Forms XML Conversion Feature ( Converting Forms To XML)

  • How to convert CSV/Text files to XML format

    Hi,
    I am trying to convert a .csv/.txt(Flat) file(s) to XML format. How can i achive this?
    Ex: I want to convert this text file to XML.
    Book#      first name                                last name                               ID#                 ID1#      F#
    B99          FRISBY                                  NASIER                                  LUCJ A         A 3127      1    
    B131         HAWKINS                              MICHAEL                               LUCJ A         A 3129       2    
    B313         KING                                     JOSHUA                                 CUCJ I         I-DORM      10   
    B307         GRAVES                               KIMBERLY                              NUCJ F         F-DORM     24-FL
    R469         HEATH                                  DARRELL                                SUCJ A         A 3132       1    
    R212         PEREZ                                  DARRELL                                SUCJ A         A 3133       2    
    R62          COFFEY                                GREGORY                               NUCJ HC      H C 3112    3FLOOR
    R215         BLACKWELL                          DEREK                                   LUCJ OOW     W 01       1     Could anyone please suggest me if we have any open source java api to acheive this?
    Thanks,
    Srikanth.

    Have a look at [http://servingxml.sourceforge.net/|http://servingxml.sourceforge.net/] or [http://www.talend.com/|http://www.talend.com/]

  • How to create a text file or XML file  and add content through  code into it...

    Hi Everyone,
    How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
    Else say how to create a new XML file through the code and how some content like Example "Hello World".

    You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
    You can then export the file with the doc.exportDataObject method:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
    This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.

  • Problem in text file to xml scenario

    hi,
    while executing the Flat file (txt) to xml file scenario, the txt file picked up from my source directory, but i could not find in my target directory.
    when i check message monitoring, it is showing successful.
    Audit Log for Message: af840930-3fa2-11dc-a345-000423c7753d
    Time Stamp Status Description
    2007-07-31 16:14:47 Success Channel CC_sender: Entire file content converted to XML format
    2007-07-31 16:14:47 Success Send text file "xi_input.txt" from FTP server "64.72.230.130:/praba_source", size 353 bytes with QoS EO
    2007-07-31 16:14:47 Success Application attempting to send an XI message asynchronously using connection AFW.
    2007-07-31 16:14:47 Success Trying to put the message into the send queue.
    2007-07-31 16:14:47 Success Message successfully put into the queue.
    2007-07-31 16:14:47 Success The application sent the message asynchronously using connection AFW. Returning to application.
    2007-07-31 16:14:47 Success The message was successfully retrieved from the send queue.
    2007-07-31 16:14:47 Success File "xi_input.txt" deleted after processing
    2007-07-31 16:14:47 Success The message status set to DLNG.
    2007-07-31 16:14:48 Success The message was successfully transmitted to endpoint http://xiserver1:8000/sap/xi/engine?type=entry using connection AFW.
    2007-07-31 16:14:48 Success The message status set to DLVD.
    2007-07-31 16:14:48 Success The message was successfully delivered.
    I followed the Venkat Donela blog
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    IN sender CC, i used file content conversion(mesage protocol), file name scheme xi_input.txt
    In receiver CC , I used file (message protocol),file name scheme xi_output.xml
    In both CC , transport protocol is FTP.
    so i gave server name, port, username, password.
    could you help me out to find the error for this scenario also?
    Thanks in advance

    hi,
    when i click on this adapeter engine xiserver1, it is changing to green color,
    if i double click nothing is happening as u said
    but it is showing like this Central CCMS monitor not available
    anyway i giving all my values in sender CC:
    in sender communication channel
    TP : FTP
    MP: File content conversion
    AE: IS
    File access parameters:
    sD: /praba_source
    FN: xi_input.txt
    FTP access parameters:
    server: xx.xx.xxx.xxx
    port:  xx
    username: xxxxx
    password: xxxx
    connection mode: permanently
    transfer mode: Binary
    Processing Parameters:
    QoS: exactly once
    poll interval: 60
    Processing mode: Test
    File type: Binary
    Content Conversion Parameters:
    Document name dt_outbound
    Document namespace urn:xxxxxx
    record name: record
    recordset str: row,*
    recordset seq:Ascending
    key fiedl type: string(case-sensitive)
    name:                value
    row.fieldNames:     FirstName,LastName,MiddleName,City,Place,State,Country
    row.fieldSeperator:     ,
    row.processConfiguration: FromConfiguration
    row.endSeperator: 'nl'
    my input file which i kept in source directory is xi_input.txt
    content of this file (xi_input.txt) is
    Samuel,J,Jackson,Lakefront Drive,Earth City,Missouri,USA
    Kenny,m,George,North Beauregard street,Alexandria,Virginia,USA
    my dt_outbound structure like this,
    dt_outbound (complex type)
    then lower element is record
    then lower elemnt is row
    then FirstName
    LastName
    MiddleName
    City
    Place
    State
    Country
    anyway i pasted my sxd dt_outbound type
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:praba_flatfile2xml07"
    targetNamespace="urn:praba_flatfile2xml07">
         <xsd:complexType name="dt_outbound">
              <xsd:annotation>
                   <xsd:appinfo source="http://sap.com/xi/TextID">
                   2bc3c190404611dc88a3000423c7753d
                   </xsd:appinfo>
              </xsd:annotation>
              <xsd:sequence>
                   <xsd:element name="record">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             35982b703f7911dc871cd71bc0a8016d
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="row"
    maxOccurs="unbounded">          
                             <xsd:annotation>
                                            <xsd:appinfo
    source="http://sap.com/xi/TextID">
    359f57603f7911dcca2ed71bc0a8016d
                                            </xsd:appinfo>
                                       </xsd:annotation>
                                       <xsd:complexType>
                                            <xsd:sequence>
                                                 <xsd:element
    name="FirstName" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    359f57613f7911dc8d9cd71bc0a8016d
    </xsd:appinfo>
    </xsd:annotation>
                                                 </xsd:element>
                                                 <xsd:element
    name="LastName" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    359f57623f7911dca6e8d71bc0a8016d
    </xsd:appinfo>
    </xsd:annotation>
                                                 </xsd:element>
                                                 <xsd:element
    name="MiddleName" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    359f57633f7911dcc31ed71bc0a8016d
    </xsd:appinfo>
    </xsd:annotation>
                                                 </xsd:element>
                                                 <xsd:element
    name="City" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    359f57643f7911dc8c7ad71bc0a8016d
    </xsd:appinfo>
    </xsd:annotation>
                                                 </xsd:element>
                                                 <xsd:element
    name="Place" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    359f57653f7911dca7dbd71bc0a8016d
    </xsd:appinfo>
    </xsd:annotation>
                                                 </xsd:element>
                                                 <xsd:element
    name="State" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    359f57663f7911dcbd52d71bc0a8016d
    </xsd:appinfo>
    </xsd:annotation>
                                                 </xsd:element>
                                                 <xsd:element
    name="Country" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    359f57673f7911dca78ad71bc0a8016d
    </xsd:appinfo>
    </xsd:annotation>
                                                 </xsd:element>
                                            </xsd:sequence>
                                       </xsd:complexType>
                                  </xsd:element>
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
              </xsd:sequence>
         </xsd:complexType>
    </xsd:schema>

  • How to convert text file into xml file format with and check that with DTD

    I have an text file with | seperator . I have to convert this to an xml file and check with DTD present with me..
    plz help me out

    can i get some code that how to compare the xml with dtd or just give the DTD name with an XML

  • How to convert text file into xml file

    Hi Folks,
    I am genarating list of data into text file, but i want to genarate xml file for this text file. How to achive this , please let me know. Thanks.
    regards
    Vishal

    hi Vishal,
      Use<b> GUI_DOWNLOAD</b> FM and give the file name as <b>file.xml</b> with BIN Mode....
    i.e,
      Download internal table to presentation server file(PC)
      DATA: ld_filename TYPE string value <b>file.xml</b>,
    Pre version 4.7 declaration e_file like rlgrap-filename.
      DATA: begin of it_datatab occurs 0,
      row(500) type c,
    end of it_datatab.
      call function 'GUI_DOWNLOAD'
           exporting
                filename         = ld_filename
                <b>filetype         = 'BIN'</b>
           tables
                data_tab         = it_datatab[]
           exceptions
                file_open_error  = 1
                file_write_error = 2
                others           = 3.
    Regards,
    Santosh

  • Text File to Xml

    Hi,
    How to skip headers in text file through graphical message mapping..i put some condition but instead of that headers structures are created in output xml file.
    I need to eliminate that structure created in output xml file..Also headers is coming multiple times in input file..
    When i check by keeping output as text file instead of headers blank spaces are created...In xml this blank spaces are coming as structure...
    How to eliminate the structure coming for headers in output...
    Regards
    Prakash

    Hi
    if you want to eliminate headers than you have to generate the text file at the receiver side because the fields under the XML file always come under nodes.
    and for the text file you have to do the content conversion at the receiver side.
    Thanks
    Rinku

  • Urgent Help to convert text file to XML

    I have a text file containing data. The file has following format:
    Name               : ABC Consultants
    Address               : B50, 5th Street,
                   Sector 70,
                   Salt Lake
                   Calcutta-700048
    Contact Person          : Mr. Sanjay Ghosh
    Designation          : Senior Consultant
    Phone No.          : 033-373575
    Fax               : 033-374590 Extn. 06
    E-mail               : [email protected]
    Website               : www.abc.com
    Nature of Business     : HR consultancy
    Cities of Operation     : All over India & Abroad
    Other Information     : Company specialises in providing top executives to MNCs and corporate giants like IBM, Oracle and Microsoft.
    There is information regarding other companies in the similar way.
    The objective is to create a XML file out of this text file by proper tagging like
    <name> company name comes here </name>
    <address> company address comes here </address>
    ..so on
    My approach:
    I am trying to read from the text file and store the contents into a vector object. Then I would use the vector object to create different nodes of the XML file through JDOM.
    My vector object is getting created but when I am writing it back , it is giving garbage value.
    Is my approach correct ..Please Suggest..
    Thanks in advance..
    Nilotpal

    Following is the code, which i have written. I am writing the contents to another text file - "output.txt"
    <CODE>
    try{
         // Open an input stream
    BufferedReader inputData = new BufferedReader(new FileReader("companyList.txt"));
    String buffer = null;
    while ((buffer = inputData.readLine()) != null)
         {StringTokenizer words = new StringTokenizer(buffer, ":;");
    Object[] lineData = new Object[words.countTokens()];
    int counter = 0;
    while(words.hasMoreTokens())
         {lineData[counter] = words.nextToken();
    counter++;
    data.addElement(lineData);
    Object[] obArrayData = new Object[data.size()];
    for(int i=0; i<data.size(); i++)
         {     obArrayData[i] = (Object[]) data.elementAt(i);}
    //write to a text file
    FileWriter fw = new FileWriter("C:\\Projects\\com\\gayatrii\\convertor\\output.txt");
    for(int i = 0; i < data.size(); i ++)
    fw.write(data.elementAt(i).toString()+" \n");
    fw.close();
    </CODE>

  • How should convert text file into XML file?

    I do a project "WEB SERVER LOG ANALYZER" using JSP. For that i copy the content of log file into the other file . how i convert it into XML file . xplain with coding

    Read this [page.|http://www.devx.com/getHelpOn/10MinuteSolution/20356]

  • Reading XML payload from text file

    Hello,
    I have a text file with XML payload in it. The text file has some header information and then the XML payload. How do I read only the XML payload for processing in PI?
    the structure of the text file is something like this..
    Header Information
    Payload
    Sample:
    #Datetime: 20140318-09:28:50.129
    #MessageID: sample123
    #Sender: TEST
    #SenderParty: TEST
    #ReceiverService:
    #ReceiverParty: Test
    #Interface: Test123
    #InterfaceNamespace: http://test.com
    <?xml version="1.0" encoding="UTF-8"?>
    <Sample ><Header>......
    Please advise.
    Thank you.
    Larry.

    package com.learning.utils;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class FetchPayload extends AbstractTransformation {
      String strData = null;
      @Override
      public void transform(TransformationInput arg0, TransformationOutput arg1)
      throws StreamTransformationException {
      // TODO Auto-generated method stub
      getTrace().addInfo("File Reading started ");
      String strData = convertStreamToString(arg0.getInputPayload()
      .getInputStream());
      getTrace().addInfo("File Reading successfully completed ");
      try {
      getTrace().addInfo("Generating XML started");
      strData.substring(strData.indexOf("<?xml"), strData.length());
      arg1.getOutputPayload().getOutputStream().write(
      strData.getBytes("UTF-8"));
      getTrace().addInfo("Generating XML started");
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      public String convertStreamToString(InputStream in) {
      StringBuffer sb = new StringBuffer();
      try {
      InputStreamReader isr = new InputStreamReader(in);
      Reader reader = new BufferedReader(isr);
      int ch;
      while ((ch = in.read()) > -1) {
      sb.append((char) ch);
      reader.close();
      } catch (Exception exception) {
      return sb.toString();
    and u can get  the xml as a resultant which  u can use as input for next message mapping.
    thanks and regards,
    Praveen T

  • Can I create a xml or text file?

    Hi,
    I would like to be able to create a text file or xml file
    using users input(this is not for a web site so do have server
    capabilities)
    The file will be smiler to this with the user input in {}
    Thanks for all your help

    Hey there,
    Flash being a web based application doesnt allow writing any
    files other than temp cookies or the ASO files. Now these files are
    useless for the medium you are describing here.
    Due to security reasons flash doesnt support XML/Text
    writing, but has very good support on the reading XML/Text file. If
    you are using the idea for a website then, maybe PHP, ASP along
    with SQl might help you save data from flash to a database. And if
    you have ideas of keeping this idea desktop based, maybe you can
    use MDM Zinc, even PHP, or Visual Studio (where ExternalCallbacks
    can be used).
    You can decide.

  • 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

Maybe you are looking for

  • What am I doing wrong, I am trying to burn a video that I downloaded form I tunes

    I have a Compaq Presario desktop no CQ3240AN and am trying to burn a video that I purchased from ITunes, I keep on being asked to load a disc, which I have many times. The disc I am using is Kodak DVD-RW,. My computer doesn't seem to recogonise the d

  • Camera Raw 7.3 bad at multicore usage

    Has anybody else noticed? But with the 7.3 update my quad core is suddenly down to 60 % CPU useage total, with 7.2 it was a 100 % and therefore faster processing of raw files. (Zenbook with i7 quadcore) On  my main machine I am still struggling with

  • May I know how to round a double number to 2 decimal points?

    if I have a double number 135.25689951591, how can I round this number to make it output as 135.26?

  • Flash Player 11 Failed Installation

    I am running window 7 32-bit. I tried installing the flash player 11 update on numerous occasions and failed. I have then tried a clean install as per the advice. On review of the manage add ons the latest version 11.5.502.135 is installed and enable

  • Probelm in SC

    hi Experts, when Final approver approves the SC.the staus of the SC is Error in Process. when i went to monitor SC. i saw a message Shopping cart 1000011697 (PO 6500000502): 06 078 Target quantity exceeded by 19 PC but PO is not created is created ne