Adding events in calendar from numbers or text file

Hey guys,
Ive had a look around and it seems like theres a few similar requests, but I'm not great at scripting and the like.
Essentially we have our shifts in either .txt or .numbers format and am just wanting to import them into ical as events with a start time, end time, location and name.
Any help or direction would be greatly appreciated.
I've attached a copy of what i get, hopefully its helpful.
Thnaks, Ben.

Had to guess about your Numbers table format. You mention start, end, location, and "name" but I can only see start and end.
If you have a source table in Numbers somewhat like this:
start date
end date
location
summary
9/15/14 12:00:00 PM
9/15/14 1:00:00 PM
The office
Event Title 1
9/15/14 2:00:00 PM
9/15/14 3:00:00 PM
The office
Event Title 2
Then a script like this should work (copy into AppleScript Editor, click anywhere in source table, and run):
property calendarName : "Test" -- name of target calendar -- must exist in Calendar App
property firstDataRow : 2 -- 2 if have a Header Row in table
-- map these to column numbers in your table:
property sdtCol : 1 --  start date-time column number
property edtCol : 2 --  end date-time column number
property locCol : 3 -- location column number
property summCol : 4 -- summary (title) column number
property localTimeAdj : (time to GMT) -- to convert back to local time
tell application "Numbers"
  set t to front document's active sheet's first table whose selection range's class is range
  set vv to t's rows's cells's value -- place values in "list of lists"
  repeat with r from firstDataRow to count vv
   tell vv's item r
    try
     set startDT to (item sdtCol) - localTimeAdj
     set endDT to (item edtCol) - localTimeAdj
     set locat to item locCol
     set summary to item summCol
   end try
   if item 1 is not missing value then my createEvent(calendarName, summary, startDT, endDT, locat)
   end tell
  end repeat
end tell
to createEvent(calName, cSumm, cStart, cEnd, cLoc)
  tell application "Calendar"
   tell (first calendar whose name is calName)
    make new event at end of events with properties ¬
  {summary:cSumm, start date:cStart, end date:cEnd, location:cLoc}
   end tell
  end tell
end createEvent
Usage notes:
Be sure to click somewhere in the table before running the script. Otherwise it won't know which table you mean.
This assumes you have Numbers 3.  Numbers 2 would require some adjustments.
Be sure to edit the calendarName property to match the name of your target calendar in the Calendar app, and the other properties to match your table.
SG

Similar Messages

  • Adding Events in Calendar

    Is there a setting on iphone that will automatically set an alert when setting a new event within calendar (like it does in ical)?

    I have the same problem.

  • Help with program to remove comments from chess(pgn) text files

    Hi
    I would like to make a java program that will remove chessbase comments from pgn files (which are just based text files).
    I have done no java programming on text files so far and so this will be a new java adventure for me. Otherwise I have limited basic java experience mainly with Java chess GUI's and java chess engines.
    I show here a portion of such a pgn text file with the chessbase comments which are between the curly braces after the moves:
    1. e4 {[%emt 0:00:01]} c6 {[%emt 0:00:10]} 2. d4 {[%emt 0:00:03]} d5 {
    [%emt 0:00:01]} 3. e5 {[%emt 0:00:01]} Bf5 {[%emt 0:00:01]} 4. h4 {
    [%emt 0:00:02]} e6 {[%emt 0:00:02]}
    I want to make a java program if possible that removes these comments, so just leaving the move notation eg:
    1. e4 c6 2. d4 d5 3. e5 Bf5 4. h4 e6
    I am just starting with this. As yet I am unsure how to begin and do this and I would be extremely grateful for any help and advice to get me going with this project.
    I look forward to replies, many thanks

    I found a simple java text editor (NutPad-with sourcecode) and have tried to adapt it to incorporate the regular expressions code suggested by ChuckBing and renamed it CleanCBpgnPad.
    Presently this won't compile! (not surprising).
    I copy the code here:
    //CleanCBpgnPad by tR2 based on NutPad text editor
    // editor/NutPad.java -- A very simple text editor -- Fred Swartz - 2004-08
    // Illustrates use of AbstractActions for menus.
    //http://www.roseindia.net/java/java-tips/45examples/20components/editor/nutpad.shtml
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class CleanCBpgnPad extends JFrame {
    //-- Components
    private JTextArea mEditArea;
    private JFileChooser mFileChooser = new JFileChooser(".");
    //-- Actions
    private Action mOpenAction;
    private Action mSaveAction;
    private Action mExitAction;
    private Action mCleanAction;
    //===================================================================== main
    public static void main(String[] args) {
    new CleanCBpgnPad().setVisible(true);
    }//end main
    //============================================================== constructor
    public CleanCBpgnPad() {
    createActions();
    this.setContentPane(new contentPanel());
    this.setJMenuBar(createMenuBar());
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.setTitle("CleanCBpgnPad");
    this.pack();
    }//end constructor
    ///////////////////////////////////////////////////////// class contentPanel
    private class contentPanel extends JPanel {       
    //========================================================== constructor
    contentPanel() {
    //-- Create components.
    mEditArea = new JTextArea(15, 80);
    mEditArea.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
    mEditArea.setFont(new Font("monospaced", Font.PLAIN, 14));
    JScrollPane scrollingText = new JScrollPane(mEditArea);
    //-- Do layout
    this.setLayout(new BorderLayout());
    this.add(scrollingText, BorderLayout.CENTER);
    }//end constructor
    }//end class contentPanel
    //============================================================ createMenuBar
    /** Utility function to create a menubar. */
    private JMenuBar createMenuBar() {
    JMenuBar menuBar = new JMenuBar();
    JMenu fileMenu = menuBar.add(new JMenu("File"));
    fileMenu.add(mOpenAction); // Note use of actions, not text.
    fileMenu.add(mSaveAction);
    fileMenu.add(mCleanAction);
    fileMenu.addSeparator();
    fileMenu.add(mExitAction);
    return menuBar;
    }//end createMenuBar
    //============================================================ createActions
    /** Utility function to define actions. */
    private void createActions() {
    mOpenAction = new AbstractAction("Open...") {
    public void actionPerformed(ActionEvent e) {
    int retval = mFileChooser.showOpenDialog(CleanCBpgnPad.this);
    if (retval == JFileChooser.APPROVE_OPTION) {
    File f = mFileChooser.getSelectedFile();
    try {
    FileReader reader = new FileReader(f);
    mEditArea.read(reader, ""); // Use TextComponent read
    } catch (IOException ioex) {
    System.out.println(e);
    System.exit(1);
    mSaveAction = new AbstractAction("Save") {
    public void actionPerformed(ActionEvent e) {
    int retval = mFileChooser.showSaveDialog(CleanCBpgnPad.this);
    if (retval == JFileChooser.APPROVE_OPTION) {
    File f = mFileChooser.getSelectedFile();
    try {
    FileWriter writer = new FileWriter(f);
    mEditArea.write(writer); // Use TextComponent write
    } catch (IOException ioex) {
    System.out.println(e);
    System.exit(1);
    mCleanAction = new AbstractAction ("Clean"){
    public void actionPerformed (ActionEvent e) {
    int retval = mFileChooser.showCleanDialog(CleanCBpgnPad.this);
    if (retval== JFileChooser.APPROVE_OPTION){
    File f = mFileChooser.getSelectedFile();
    try {
    FileCleaner cleaner = new FileCleaner (c);
    mEditArea.clean(cleaner); // Use TextComponent clean
    }catch (IOException ioex){
    String str = "1. e4 {[%emt 0:00:01]} c6 {[%emt 0:00:10]} 2. d4 {[%emt 0:00:03]} d5 {[%emt 0:00:01]} " + "3. e5 {[%emt 0:00:01]} Bf5 {[%emt 0:00:01]} 4. h4 {[%emt 0:00:02]} e6 {[%emt 0:00:02]}";
    str = str.replaceAll("\\{.*?\\}", "");
    System.out.println(str);
    System.exit(1);
    mExitAction = new AbstractAction("Exit") {
    public void actionPerformed(ActionEvent e) {
    System.exit(0);
    }//end createActions
    }//end class CleanCBpgnPad
    As seen I added a newAction mClean.
    4 errors arise starting with line 101-cannot find symbol method showCleanDialog
    then 3 errors on line 104 tryfilecleaner
    Can anyone help me with this please?
    Can I incorporate the regular expression code to remove these text comments into this text editor code and if so how?
    Obviously a lot of this code is new to me and I will continue to study it and hope to learn to understand most , if not all of it!
    Again I look forward to replies,thanks

  • Read and write from and to text file

     Hi All,
    I am trying to read some portion of a text file and make measurement and calculation with those numbers and write back to the same text file and also to a excel file. I need to create a 2 D  array of 20 by 20 from the text file values and write to front panel table and to text file. but I am having problem with it, obviously I am new to this. Please help me.  thanks much
    ~ Johnny

    Hi Lynn,
    the requirement is to move C1 and C2 to each position that is given in the text file in steps and percentage value.
    for example C1 has to go to first step (5%) and C2 has to go thru all steps, 5% to 95% , in 5 percent increment. 
    each 100 steps translates to 1 percent increment in the capacitor value.
    at the end, I need to enter the measured data (values of C1 for each step, vesus all values of C2 for all steps) and enter them at the bottom of the text file's table where it starts at : "IMPEDANCE_REAL in Ohmone line per C1 position, containing all values for the different C2 positions" and do the same for where it says "IMPEDANCE_IMAGINARY in Ohmone line per C1 position, containing all values for the different C2 positions"
    the reason I read the file twice, is that if it read it once, I couldn't connect it to spreadsheet string to array vi.
    as you can see, I also like to use the write to measurement file and build table express vi's to display the table on the front panel and save the data to ni data file format so later I convert it to excel  too.
    any thoughts?
    thanks for your help
    ~ Johnny
    Attachments:
    read from text2.vi ‏82 KB

  • How do I stop TB from including a text file inline, instead of making it only an attachment?

    When I send text files, TB inserts them into the body, as well as attaching the files separately. I don't want them in the body, and I can't find a way not to do that. I've looked all through the options, but the only thing that's close refers to forwarding messages, and changing that did no good. Thank you.

    OK, that explains a little. On my Web-based mail system, the files are attached, not embedded. When I sync that account (IMAP) with TB on my desktop, they're both embedded and attached. Time to look at the options on my desktop.
    On the sending PC, TB shows the sent message with the text as both embedded and attached.
    I've used TB for several years on my desktop, and have never noticed this behavior. I just had to replace the other PC, and changed from Eudora to TB. Maybe all of the options aren't set right, so I'll compare them to my desktop's settings.
    I'm open to more suggestions if you have them.

  • Create a new dimension in business layer from Data source: text file on the web

    Hi,
    I have a text data source which is published every few hours that is accessible from a certain URL. I follow the instruction given in this http://scn.sap.com/docs/DOC-43144 - where it shows in great detail how to create the connection, data foundation as well as business layer to create a universe for this type of data.
    All is well - I can use this universe in my WEBI doc and display the data.
    However, in order for me to merge the data from this universe with another universe, I need to create  new dimension based on the data from the text file. The new dimension value is simply the first 4 characters of the Subject found in the text file. The "Subject" dimension is of variant type: varchar.
    Following the guide mentioned earlier, the connection is using SAP BO OpenConnectivity driver. And this driver limits severely the SQL statement that I can use to extract a substring of another string. Here's the screenshot of the SQl expression that I can use with this driver
    After hours of searching, I cannot find any other connection driver for a text file that's published on a certain URL. The BO OpenConnection driver is the best that I could find.
    So here are my problems
    1. one of my data source is a text file published on a web
    2. the only connection I can create does not allow me to create  new dimension in the universe to create an important column "subject ID"
    3. I can create the column in webi as a variable. But when I do so, I cannot merge it with existing dimension (webi not allowing to merge these 2 types). And without the merge, the flat file universe with my database universe can't be combined.
    I'm using WEBI Rich client version 4.1 SP3 Patch 1. Build 14.1.3.1300
    Is there any other idea that you can suggest without requiring to change the extracted data?
    Thanks.
    With warm regards

    Hi Bala,
    Were you able to find out a solution for the problem with uploading values for a variable from a text file on the web?  I am confronted with the same request from users.
    Thanks,
    BQ

  • Importing multiple amount columns from a single text file

    I'm sure this question has been addressed many times. I have tried to search for an answer here and other areas, but I have not been able to find a clear answer yet. I am relatively new to HFM and FDM and thus do not have a lot of experience to fall back on. I am primarily a Planning/Essbase person. That being said, here is my question:
    I have a data source (text file) containing two amount columns that I need to load to HFM via FDM. One amount column consists of Average Exchange Rates and the other amount column consists of Ending Exchange Rates. I have been asked to develop a process to load both columns of data to HFM using a single process (one Import Format). I've been told this is possible by writing an Import DataPump script. It seems that I would need to create a temporary record set based on the original source file and modify it so that it contained a duplicate set of records where the first set would be used for the Average Rate and the second set would be used for the Ending Rate. This would be a piece of cake using SQL against a relational source, but that's obviously not the case here. I do have some experience with writing FDM scripts but from an IF... Then... Else... standpoint based on metadata values.
    If there is anyone out there that has time to help me with this, it would be most appreciated.
    Thanks,

    This is relatively easy to achieve with a single import script associated with the Account source field (assuming AverageRate and EndRate are accounts in your application) in your import format.
    Essentially your first amount say AverageRate would be set as the default field for Amount and these values would be loaded as if it were a single value file. For the second value, EndRate you would have to insert the second value directly into the FDM work table which is the temporary table populated when data is imported from a file during the import process. The example code snippet below suld gve you guidance on how this is done
    'Get name of temp import work table
    strWorkTableName = RES.PstrWorkTable
    'Create temp table trial balance recordset
    Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
    If IsNumeric(EndRateFieldValue Ref Goes Here) Then
              If EndRateFieldValue Ref Goes Here <> 0 Then
                   ' Create a new record, and supply it with its field values
                   rsAppend.AddNew
                   rsAppend.Fields("DataView") = "YTD"
                   rsAppend.Fields("PartitionKey") = RES.PlngLocKey
                   rsAppend.Fields("CatKey") = RES.PlngCatKey
                   rsAppend.Fields("PeriodKey") = RES.PdtePerKey
                   rsAppend.Fields("CalcAcctType") = 9
                   rsAppend.Fields("Account") = "EndRate"
                   rsAppend.Fields("Amount") = EndRateFieldValue Ref
                   rsAppend.Fields("Entity")=DW.Utilities.fParseString(strRecord, 16, 1, ",")
                   rsAppend.Fields("UD1") = DW.Utilities.fParseString(strRecord, 16, 2, ",")
                   rsAppend.Fields("UD2") = DW.Utilities.fParseString(strRecord, 16, 3, ",")
                   rsAppend.Fields("UD3") = DW.Utilities.fParseString(strRecord, 16, 16, ",")
                   'Append the record to the collection
                   rsAppend.Update
              End If
    End If
    'Close recordset
    rsAppend.close
    In addition the return value of this Import Script should be "AverageRate" i.e. name of ht eaccount associated with the first value field. The NZP expression also needs to be put on the Amount field in the import format to ensure that the EndRate Field value is always processed even if the value of AverageRate is zero.

  • Transfer Data from excel to text file or SAP R/3

    Hi,
    Can anyone please let me know if there is any function module to transfer data from excel to a .txt file.
    I am using a CRM 5.0 system and some standard SAP function modules are missing.
    I want to fetch data from excel to SAP R/3.
    Wish you great time.
    Best Regards
    Sid

    Hi Sid,
    extracting data from an excel sheet to SAP u can use the function module GUI_UPLOAD.
    I am providing u its parameters also as it might be useful to u.
    The mandatory fields here are FILENAME n in TABLES (in which u will be saving ur data).
    and also if u need to download from sap to any file u can use GUI_DOWNLOAD in which u can save data in both excel or txt file.
    U can also use SAP_CONVERT_TO_TEX_FORMAT function module to convert into text file.
    Rewards would be highly appreciated. Thanks.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      =
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Reading character '�' from a notepad text file

    Hi, I created a text file using plain editor ( notepad), when I try to read the character '�' a got the � symbol.
    What I have to do ?
    Thanks in advance.

    Hi, and yes , at this point of time I can not resolve the problem, the problem it's not only with the �, but with �, �, � � � Spanish characters !
    They can be creted using a plain text editor, but i can not read it from java !
    Thanks a LOT again.

  • Reading from graph to text file in labview 7.0

    Hi Guys!
    I am doing a project which reads analog values from a microprocessor board and I am using the Labview example Cont Acq&Graph Voltage-Int Clk.vi. I am getting an analogue graph using this VI. is there any way I can convert the values on the graph and save them to a text file?
    Any help would be much appreciated!
    Thanks
    Pauline

    Hi Pauline
    There are two ways. Either you place the Export vi in the vi you're already using or you assign the waveform indicator to a terminal (search the LV help for terminal). This makes the waveform-data available for other vi's if you use the Cont...vi as a sub-vi. This means you can create a new vi, place the cont acq&graph valtage-int clk.vi and the export waveform to spreadsheet file.vi in it and wire these together (similar to all the vi's in con acq&graph...vi).
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How to read a String from a simple text file.

    I have a set up popup reminders, the content of which I have entered into a text file. I read the text and display it in a specially formatted JFrame/JPanel.
    My question is, since readLine() has been deprecated, how do you read a simple line of text data from a file created by, say, notepad? I guess I could just use readLine() anyway, but I want to learn the language, and "playing by the rules" seems to be the way I should go.

    I''m guessing your referring to the readLine method of DataInputStream. Use another class, like BufferedReader, which also happens to have a method named readLine:
    BufferedReader in = new BufferedReader(new FileReader(filename));
    try {
        String line;
        while ((line = in.readLine()) != null) {
            //process line
    } finally {
        in.close();
    }

  • Efficent method to sort data from tab delimited text file

    I am currently writing a program to sort through data that was acquired and display it on a graph and some other indicators.  The file is a tab delimited text file with possibly 100,000s of data points.  the current method that I have tried using was that if I wanted all of the data from Oct, I would parse out the month from the timestamp, compare that to the desired month, and add it to the array if it is the same.  Other possible options of sorting are yearly and daily, possibly even hourly.
    The method does work, however it does take some time (up to a minute on a P4 3.6 GHz with 2 gb ram), and most of the other computers are not nearly as fast or with as much memory.  Is there a more efficent method to sorting the data??
    I attached my sorting vi as well as a sample data file.
    thanks for the advice.  It is saved in LV8.0.1
    Kenny
    Kenny
    Attachments:
    data sort.zip ‏84 KB
    oven1.txt ‏21 KB

    First of all, "sorting" has usually a different meaning (Sorting and numeric array ascending or descending, a string array aphabetically, etc.). Your data already seems sorted by date and time, you just want to pick a subset having certain characteristics.
    The main problem that is slowing you down is your constant growing of large arrays. This causes constant memory reallocations.
    Since your data is already sorted by date and time, all you need is to place your data in a sutable data structure, find the start and end point of your selection, then use "array subset" for example.
    Your code also seems to have a lot of unecessary complexity. See for example your "test for sort data" (see image below).
    the four cases only differ by filename --> only the file name belongs into the case and the file operation outside the inner case. Even better, just use autoindexing.
    that shift register does not do anything, because it always contains the same data. Using "index array" with index wired to [i] is equivalent to an autoindexing tunnel.
    You have a case structure to select which files to read, skipped files give you an empty array. Do you really need to do all these operations on an empty array. Why not place all code inside the TRUE case??
    Below is an image of one possible code alternative that addresses some of these points.
    Message Edited by altenbach on 10-26-2006 09:32 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    testForSortData.png ‏33 KB

  • Small doubt  reg upload from tab delimited text file

    Hi  all,
    i am uploading a tab delimited text file to a ztable.
    I moving the text file in to internal table
    data : begin of i_tab occurs 0,
           text(1024) type c,
           end of i_tab.
    then i have passed to FM GUI_UPLOAD.
    and then splitting
    loop at i_tab.
    split i_tab at con_tab
                              into i_xyz-matnr
                                   i_xyz-werks.
        append i_xyz.
    endloop..
    is this the right approach . iam getting the results but iam just curious to know.
    Do i need to internal like the one i created
    data : begin of i_tab occurs 0,
           text(1024) type c,
           end of i_tab.
    or do i need to create one with field that i have in text file.
    data : begin of i_tab occurs 0,
       matnr like mara-matnr,
      werks like marc-werks
    end of i_tab.
    WHICH ONE OF THE TWO IS RIGHT.
    THANKS IN ADVANCE

    There will be NO difference,i guess in the 2 methods.
    you can use which you like.
    Check the below program,i also given quantity fields F2,F3.
    its working fine
    REPORT  ZSRIM_TEMP13.
    data : begin of itab occurs 0,
             f1(20) type c,
             f2     type i,
             f3(10)     type p DECIMALS 2,
           end of itab.
           CALL FUNCTION 'GUI_UPLOAD'
             EXPORTING
               FILENAME                      = 'c:a.txt'
              FILETYPE                      = 'ASC'
              <b>HAS_FIELD_SEPARATOR           = 'X'</b>
    *          HEADER_LENGTH                 = 0
    *          READ_BY_LINE                  = 'X'
    *          DAT_MODE                      = ' '
    *          CODEPAGE                      = ' '
    *          IGNORE_CERR                   = ABAP_TRUE
    *          REPLACEMENT                   = '#'
    *          CHECK_BOM                     = ' '
    *          VIRUS_SCAN_PROFILE            = VIRUS_SCAN_PROFILE
    *          NO_AUTH_CHECK                 = ' '
    *        IMPORTING
    *          FILELENGTH                    = FILELENGTH
    *          HEADER                        = HEADER
             TABLES
               DATA_TAB                      = ITAB
            EXCEPTIONS
              FILE_OPEN_ERROR               = 1
              FILE_READ_ERROR               = 2
              NO_BATCH                      = 3
              GUI_REFUSE_FILETRANSFER       = 4
              INVALID_TYPE                  = 5
              NO_AUTHORITY                  = 6
              UNKNOWN_ERROR                 = 7
              BAD_DATA_FORMAT               = 8
              HEADER_NOT_ALLOWED            = 9
              SEPARATOR_NOT_ALLOWED         = 10
              HEADER_TOO_LONG               = 11
              UNKNOWN_DP_ERROR              = 12
              ACCESS_DENIED                 = 13
              DP_OUT_OF_MEMORY              = 14
              DISK_FULL                     = 15
              DP_TIMEOUT                    = 16
              OTHERS                        = 17
           IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
           LOOP AT ITAB.
             WRITE :/ ITAB-F1, ITAB-F2,ITAB-F3.
           ENDLOOP.
    my input file i created with TAB seperated text file,
    here is the input file
    LINE1     1000     123.25
    LINE2     2000     234.25
    LINE3     3000     345.25
    LINE1     1000     123.25
    LINE2     2000     234.25
    LINE3     3000     345.25
    Regards
    Srikanth
    Message was edited by: Srikanth Kidambi

  • Refresh cannel data from ever growing text-file

    (I previously mis-posted this in the general forum, sorry!)
    Hi,
    I have text files coming in, each to add 250 values to a channel every 30 seconds.  I am writing some code to massage the incoming data, and append the 4 channels to a single text file.
    So I have 4 channels in a text file which continues to grow.
    How do I make Diadem display all new data as the text file grows, to show analysis on the channel data in real-time?
    Thanks!
    My text file looks like this, and will grow by new lines as I receive them:
    height,width,length,volume
    15.00,13.460125,13.196651,12.123
    13.404634,13.545893,13.171975,12.234
    15.10,13.460125,13.196651,12.345
    13.404634,13.545893,13.171975,12.456

    Hi Dave,
    I thought you said in your other post that each quantity was in a file of its own? Well, if they're all in the same file that simplifies matters a bit. DIAdem does not have a built-in monitoring feature, but you could run a VBScript that re-loads the data up until now and runs the analysis and plots the report graphs, tables, etc. This would give you a periodically updating view into your ongoing data acquisition.
    Note that there is an issue with ever-growing ASCII data files-- they take longer and longer to read. How big might these data files get? 10 MB? 100MB? 1GB? Really, if they're going to get bigger than a few MB you ought to consider segmenting them-- as your other post indicates they are. Then if time becomes an issue, the VBScript could keep track of which data files it's already loaded and only load the new ones.
    Again, please send me the data files you have, and I'll make concrete suggestions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Adding event deletes calendar

    I have three calendars called Scripts (has repeating events that run scripts), Special and Reminders. I created these a few weeks ago. I just tried to add a repeating event to the Reminders calendar. I tried two different ways:
    With all calendars showing - add the event
    With only reminders showing - add the event
    In both cases during the process of adding the event, all events for the Scripts calendar are deleted.
    This is driving me crazy since when I created the three calendars a few weeks ago I was able to selectively add events to any calendar.
    Running the latest iCal 5.0.1 on Lion 10.7.2.

    Gave up on this and recreated all three calendars again. Changed the name on the calendar previously called "Reminders" too "Tweaks" in case that caused an issue (pure WAG).
    While recreating I opened and quit the iCal app several times with no problems. Will post here if the problem reoccurs. In the meantime I'm saving the iCal data in my Library every day and also the Prefs.

Maybe you are looking for