Save file as text file

i will try this again.
i have a table with lots of fields. one field has event type
i would like to count event type and save it to a text file with the heading of type of event, say "accidents", "alarms".
i only want the total number and to be displayed in horizontal
in the saved text file.
thanks for any help
example: select count(*) event type from event
result: "accidents" "alarms"
324 343

SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0042: unknown command "INJURIES"" - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0042: unknown command "INVOLVED"" - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning "S / STINGS..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0042: unknown command """ - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning "HIVES,ITCH..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0042: unknown command "TUATION)"" - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0042: unknown command "PRESENT)"" - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0734: unknown command beginning ",SUM(DECOD..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0042: unknown command "HEMO."" - rest of line ignored.

Similar Messages

  • Save as PDF file as excel file or text file in vba excel

    Hi all,
    I am opening a PDF document fromm VBA excel. After opening document it should save the document as excel file or text file in one folder.
    I am trying to do this with some code but not able to , pls help me thatnks.
    Dim AcroApp As Acrobat.CAcroApp
      Dim Part1Document As Acrobat.CAcroPDDoc
    Set Part1Document = CreateObject("AcroExch.PDDoc")
       Part1Document.Open ("Z:\EG MI Information\MIS\Requests\Req_156\NO.1.pdf")
      Dim app As Object, avdoc As Object, pageview As Object
    Set app = CreateObject("AcroExch.App")
    Set avdoc = app.GetActiveDoc
    app.MenuItemExecute ("SaveAs")
    thanks
    Abhijeet

    Hi,
    In the documentation for the saveAs function it has the following params
    cPath The device-independent path in which to save the file.
    cConvID (optional, Acrobat 6.0) A conversion ID string that specifies the conversion
    file type.
    cFS (optional, Acrobat 7.0) A string that specifies the source file system name.
    bCopy (optional, Acrobat 7.0) A Boolean value which, if true, saves the PDF file
    as a copy. The default is false.
    bPromptToOverwrite (optional, Acrobat 7.0) A Boolean value which, if true, prompts the user if
    the destination file already exists. The default is false.
    In order to get a text file saved you need to specify the correct cConvID.
    See the documentation for the valid convID's - http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/JS_API_AcroJS.88.519.html
    Please note the Acrobat SDK contains all the information and does not require much installing ( as it is a zip file(on windows) and a disc image (on Mac) it just needs extracted)
    Regards
    Malcolm

  • Save string in text file

    I have program to store Arabic string and save it in text file i use Eclpise there i did change the encoding to UTF-8 so i can read the string and print it fine but when i save it as a text file in c drive i get this ��������;����������������������;�������� insted of the arabic string.
    this is a part of the code:
    FileOutputStream fileStream;
    try {
    fileStream = new FileOutputStream ("c:/test/f1.txt");
    PrintWriter pw=new PrintWriter(fileStream, true);
    // s2=new String(s2.getBytes( "UTF-8"));
    pw.println(s2);
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    }

    Hi
    Have a look at your OS settings and make shure that your OS regional setting allows support for Arabic.
    If you are using Windows you can check the settings at
    Start --> Settings --> Controll Pannel --> Regional and Language Options.
    Regards
    Vijendra

  • Can I save and read text files on a server that I host?

    Hello everyone,
    I am a java hobbiest. I was wondering if I set up my own server, running out of my house, could I have my applets save to my computer and read from my computer without having to learn JDBC and a DATABASE language. In other words could i just have my applet save and read text files from and to my server?
    I'm trying to set up a sight for my 5th grade class where parents can log into. Thanks for your time.
    Oh yeah, which is easier, learning how to set up a server or learning JDBC and a DATABASE language?
    If you have any other good idease please tell me them
    Thank you, Bryan

    Short answer: This isn't gonna work
    Long answer: For this to work, the first thing you're going to need is a static IP address and a DNS name registered -actually you don't necessarily need #2 but you're probably gonna want it and it's by far the easier of the steps.
    As far as I know to get a fixed IP address you've either gotta be directly attached to a larger network (ie university network) or get a leased line from an ISP.
    Once you've got that done come back to us.

  • 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

  • Download File thru Text file and add password to protect text file

    Hello ABAPers,
    I have a problem regarding downloading of file in text file with password...meaning I need to protect with password the text file i created without human intervention...is it possible to ABAP? im using FM GUI_DOwnload and save it to text file.
    Please Help...Will reward points ...
    Thanks in advance.
    aVaDuDz

    Hi
    You could use OLE to integrate SAP with Excel - create files, execute macros etc. (search for DOI on SAP help), but this will only work on the presentation server, so you couldn't run it as a service in background. I suppose your e-mails are sent through the internet, hence the requirement for encryption -- or maybe your client doesn't trust its network people! For this you really should use strong encryption -- anything less, you might as well send plain text. One solution to this would be to send the email down a VPDN -- this would encrypt all traffic between source and destination. Another would be to encrypt the file just before it is attached to the email. This could be done within ABAP, but perhaps a third party public key encryptor would be better placed. This could be invoked via a system command call, or as an RFC. A third solution would be to have your mail server handle the encryption.
    Heres the link for the above explaination
    http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_gci1037837,00.html?track=sap805s
    One more link
    <a href=" http://www.telfordpct.nhs.uk/healthcare_professionals/SAP/creating_sap_documents_in_word_copy(1).htm ">http://www.telfordpct.nhs.uk/healthcare_professionals/SAP/creating_sap_documents_in_word_copy(1).htm</a>
    Regards
    Raj
    Message was edited by:
            Rajasekhar Dinavahi

  • My Illustrator CC show Dxf files as Text files...

    My Illustrator CC identify my dxf files as text files...
    even they are valid dxf files as Acrobat or Rhino are able to open them...
    Any hints ?
    Many Thanks

    Hi,
    It's generated as an export by a tierce Application...I'm trying to get from the editor to which version their Dxf is supposed to be compliant.
    JM

  • How to save data from text file in databse for a transaction...

    Hi Guys,
    I have a text file which has some data related relevant to transaction VA01 separated by tabs.
    Now instead of going in the transaction in VA01 and thne feeding the data manually, I would like this data
    to get read automatically from the text file and get processed field by field for transaction VA01 and thne get saved.
    How do I achieve this ? Do I have to use SHDB or some other method ?a

    hi tushar,
    REPORT  ZCALL_TRANS_TAB1                      .
    TABLES: LFA1,LFBK,lfb1.
    *& internal table declaration
    data: BEGIN OF it_vendor occurs 0,
           LIFNR LIKE LFA1-LIFNR,
           bukrs like lfb1-bukrs,
           END OF it_vendor.
    DATA: BEGIN OF IT_BANK occurs 0,
          LIFNR LIKE LFA1-LIFNR,
          BANKS LIKE LFBK-BANKS,
          BANKL LIKE LFBK-BANKL,
          BANKN LIKE LFBK-BANKN,
          koinh like lfbk-koinh,
          END OF IT_BANK.
    data: it_bdcdata like bdcdata occurs 0 with header line.
    data: it_messages like bdcmsgcoll occurs 0 with header line.
    *selection screen.
    selection-screen: begin of block b1 with frame.
    parameters: p_file like rlgrap-filename default 'c:/vendor.txt'
    obligatory.
    parameters: p_file1 like rlgrap-filename default 'c:/xyz.txt'
    obligatory.
    selection-screen: end of block b1.
    *at selection screen.
    at selection-screen on value-request for p_file.
    perform f4_help using p_file.
    at selection-screen on value-request for p_file1.
    perform f4_help1 using p_file1.
    *start of selection
    start-of-selection.
    *******uploading file
    perform upload_file using p_file P_FILE1.
    ******open session.
    perform populate_data.
    *&      Form  f4_help
          text
         -->P_P_FILE  text
    form f4_help  using    p_p_file.
    data: l_file type ibipparms-path.
    call function 'F4_FILENAME'
    importing
       file_name           = l_file.
       p_file = l_file.
    endform.                    " f4_help
    *&      Form  POPULATE_DATA
          text
    -->  p1        text
    <--  p2        text
    form populate_data .
    DATA: L_STRING TYPE STRing.
    DATA: L_COUNTER(2) TYPE n.
    loop at it_vendor.
    perform bdc_dynpro      using 'SAPMF02K' '0106'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-D0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                   it_vendor-lifnr.
    perform bdc_field       using 'RF02K-BUKRS'
                                  it_vendor-bukrs.
    perform bdc_field       using 'RF02K-D0130'
                                  'X'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-bankn(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPDA'.
    ******CALL TRANSACTION.
    call transaction 'FK02' using it_bdcdata mode 'A'
                            messages into it_messages.
    write:/ sy-subrc.
    perform format_messages.
    clear it_bdcdata.
    refresh it_bdcdata.
    endloop.
    endform.                    " POPULATE_DATA
    *&      Form  FORMAT_MESSAGES
          text
    -->  p1        text
    <--  p2        text
    form format_messages .
    data: l_msg(100).
    loop at it_messages.
    call function 'FORMAT_MESSAGE'
    exporting
       id              = it_messages-msgid
       lang            = sy-langu
       no              = it_messages-msgnr
       v1              = it_messages-msgv1
       v2              = it_messages-msgv2
       v3              = it_messages-msgv3
       v4              = it_messages-msgv4
    importing
       msg             = l_msg
    exceptions
       not_found       = 1
       others          = 2
    write:/ l_msg.
      endloop.
    endform.                    " FORMAT_MESSAGES
    *&      Form  bdc_dynpro
          text
         -->P_0173   text
         -->P_0174   text
    form bdc_dynpro  using    value(p_program)
                              value(p_screen).
    it_bdcdata-program = p_program.
    it_bdcdata-dynpro = p_screen.
    it_bdcdata-dynbegin = 'X'.
    append it_bdcdata.
    clear it_bdcdata.
    endform.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0178   text
         -->P_0179   text
    form bdc_field  using    value(p_fnam)
                             value(p_fval).
    it_bdcdata-fnam = p_fnam.
    it_bdcdata-fval = p_fval.
    append it_bdcdata.
    clear it_bdcdata.
    endform.                    " bdc_field
    *&      Form  upload_file
          text
         -->P_P_FILE  text
         -->P_P_FILE1  text
    form upload_file  using    p_p_file
                               p_p_file1.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = P_P_FILE
       FILETYPE                      = 'DAT'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        data_tab                      = IT_VENDOR
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      FILE_OPEN_ERROR               = 2
      FILE_READ_ERROR               = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF sy-subrc <> 0.
    MESSAGE I000(ZZ) WITH 'UNABLE TO UPLOAD'.
    STOP.
    ENDIF.
    *******UPLOADING BANK DETAILS
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = P_P_FILE1
       FILETYPE                      = 'DAT'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        data_tab                      = IT_BANK
    EXCEPTIONS
       CONVERSION_ERROR              = 1
       FILE_OPEN_ERROR               = 2
       FILE_READ_ERROR               = 3
       INVALID_TYPE                  = 4
       NO_BATCH                      = 5
       UNKNOWN_ERROR                 = 6
       INVALID_TABLE_WIDTH           = 7
       GUI_REFUSE_FILETRANSFER       = 8
       CUSTOMER_ERROR                = 9
       NO_AUTHORITY                  = 10
       OTHERS                        = 11
    IF sy-subrc <> 0.
    MESSAGE I000(ZZ) WITH 'UNABLE TO UPLOAD'.
    STOP.
    ENDIF.
    endform.                    " upload_file
    *&      Form  f4_help1
    form f4_help1  using    p_p_file1.
    data:l_file1 type ibipparms-path.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
       FILE_NAME           = l_file1.
       p_file1 = l_file1.
    endform.                    " f4_help1

  • How can I open in java file a text file?

    Hi !
    For example I have a java file name Pencil.java and I have a text fie name Box.txt
    I want like that if ( a == b ) {open Box.txt}
    How can I do that ?
    Thanks.

    Yes I want to see what this text file contains. Like clicking to a text file with mouse and opens. Then I can see what it contains.
    I have a Java document Pencil.java and I have a text file Box.txt
    I will write a java code in pencil.java ( that I dont know ). Then when I enter a number from keyboard with
    Scanner write = new Scanner(System.in);
    int a = write.nextInt()
    if (a == b) {                } opens Box.txt
    For example
    I write to command prompt
    java pencil
    It wants from me a number : I will enter 3.
    It is same as b .
    Then Box.txt file opens.
    Edited by: zue on Jun 3, 2008 11:04 AM

  • Help on converting xml file to text file

    Hi,
    I have xml file and i want to convert to text file ...
    How do i write a perticular tag in perticular line by the time converting xml to text file using xsl ...
    Ex:
    input XML file:
    <NAME> venkat </NAME>
    <ADDRESS>
    5800 Lander Brook Drive
    </ADDRESS>
    output ASCII File:
    245 venkat
    300 5800 Lander Brook Drive
    In this example TAG <NAME> should write into line 245 and
    TAG <ADDRESS> should write into line 300 etc...
    here is the xsl file to above xml file ..
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:template match="/">
    <xsl:value-of select="Name"/>
    <xsl:value-of select="Address"/>
    </xsl:template>
    </xsl:stylesheet>
    how do i write Name value in line number 245 in the text file , similarlly how do i write Address value in line number 300 in the text file ...
    How do i specify the value has to go to a perticular line ... i know name has to goto some line number, address to some line number etc ,,,
    Any help on this please .....
    Thanks.

    sorry read: XSL.
    you will have to create your own tool to generate your text file in order to truly ensure the position of your data in the text file.

  • How to convert Labview log file to text file?

    I want to open the log file in Excel or other text editor. Is there any special format of Labview log file? I thought it just binary, so I used a general program to convert binary file to Ascii file. But it failed because of the format of the log file format. Is there any other way that I can read log file in Excel? Thanks a lot.

    Dennis Knutson wrote:
    Are you refering to the front panel logging option? The actual binary format is going to depend on what controls and indicators you have on the front panel and their data types. There is an example of using the file i/o functions to read one of these files in chapter 14 of the user manual. The problem you'll have if you write a program to read a log file is that every time you add or delete a control/indicator, you'll have to rewrite your program and then you'll be unable to read older log files. You'd be better off writing your own log routines. Then you would control the binary format. There are shipping examples that you can look at for fbinary file storage.
    Yes, I am referring the front panel logging option and I will read the maual first. Thank you very much for your help.

  • Script to add description and keywords to files from text file

    Can anyone write something up for me? I will admit I cannot do it myself, I do not know Javascript.
    I need to add keywords and a description to 1000's of images. I have a text file formatted as such for each 100 images. The script would need to ask for an input file (or I can hardcode the path into the script) and then apply to the current folder of images shown in bridge.
    Text file example:
    1000 - Bright Sunset Over City. (sun;city;sky;mountain;) .
    1001 - Dawn Behind Mountain And Lake. (sun;mountain;water;sky;) .
    1002 - Bright Red Sunset, Light Edged Clouds. (sun;sky;tree;clouds;) .
    1003 - Tree Framing Sunset Over Bay. (tree;sun;lake;bay;) .
    1004 - Sun Behind Gull On Pilings. (seagull;sun;sea;pilings;) .
    images are named 1000.tif, 1001.tif, 1002.tif etc
    Running on a Mac with CS3 and CS4.
    Thanks,
    Chris

    Hi Paul,
    This is nice example, but your script incorrectly sets both dc:description and dc:subject as ordered arrays. Description should be an alt-text type property, and subject is an unordered array (or 'bag'). Some software might not tolerate the incorrect XMP data types.
    Here's an example showing the wrong and write way to set these two properties using the XMP Script API:
    // load the library
    if (ExternalObject.AdobeXMPScript == undefined) {
        ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var Desc = "Test Description";
    var Keys = ["One","Two","Three"];
    // The wrong way to set the Description. and Keywords...
    var bogusXmp = new XMPMeta();
    bogusXmp.appendArrayItem(XMPConst.NS_DC, "description", Desc, 0,XMPConst.ARRAY_IS_ORDERED);
    for(var s in Keys){
          bogusXmp.appendArrayItem(XMPConst.NS_DC, "subject", Keys[s], 0,XMPConst.ARRAY_IS_ORDERED);
    $.writeln( bogusXmp.dumpObject() );
    // The correct way to set the Description and Keywords
    var correctXmp = new XMPMeta();
    correctXmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", Desc );
    for(var s in Keys){
          correctXmp.appendArrayItem(XMPConst.NS_DC, "subject", Keys[s], 0,XMPConst.PROP_IS_ARRAY);
    $.writeln( correctXmp.dumpObject() );
    Thanks,
    David

  • How Do I Save an ASCII Text File?

    In the Windoze world, Notepad is a simple editor that saves text strictly in ASCII format. Clean, not embellishments or tags. Sometimes it needs to be that way.
    What do I use to save ASCII text on a Mac? Somebody at the Apple store told me the answer is TextEdit, but when I went to save a file just now my choices were rich text (.rtf), HTML, Word format, or XML. No ASCII in the bunch.
    So, is there a program on here that does what Notepad does? Is there one out there somewhere...??
    --PS

    I forgot to mention, that this can also be set in the Preferences of Textedit to be the default setting:
    use plain text; add .txt extension when saving.
    I think that's all I needed to hear -- I've looked at the preferences for TextEdit and set them the way I think I want them.
    Thanks,
    --PS

  • Saving a smart folder as an excel file or text file or whatever

    I am new to the Mac.  I have created a smart folder.  I would like to copy the contents of the folder to incude the "Options" I have selected.  IE, Date Created, Date Modified. 
    I want to save this information in a excel file - I want to be able to sort by Date Crated or Date Modified or File Name. 
    I figured out how to save just the file names - but I really could use this other information.
    Any suggestions?

    In Adobe Reader you can use File > Save As > Text...
    When you want perform this task with a programm you must use Adobe Acrobat.

  • Downloading .7z file as text file instead of archive

    Firefox has problem downloading .7z file. I read on other post that this is server side related but if I try to download the same file using Internet Explorer it download fine. So there has to be something that can be done to fix this problem.

    Changing the setting for alt click didn't help, I press alt after pasting the link and then press enter, open the file in a new tab but still as plain text. I also tried pressing alt 1 sec after pressing enter but the file still appear as text instead of archive.

Maybe you are looking for