Import txt or csv to iCal

Hi all,
I am trying to import a txt file for my favorite sports team but can't. Is this not possible to map this and import? I can convert the txt to csv or is there a utility to convert txt to ics? or csv to ics?
thx..ron

This script worked for someone else. Paste it into a script editor window, read through it, ask any questions, modify the script and/or your file as needed, backup your calendars and then run the script.
AK
<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">--Convert CSV file to iCal events
--Prompts for file, then processes
--expects date,start time,end time,event name,xxxx,calendar name
--eg 12/01/2006,20:30,22:00,Water Committee,,TestCal
--change the various text item ns if data order in a file line is different
--blank lines skipped
--if other data present (eg location, notes ...) add a line in the tell calendar Calno loop
--to include it eg set location to text item 5 of ThisLine
set OldDelimiters to AppleScript's text item delimiters
set LF to ASCII character 10
set theFile to choose file with prompt "Select CSV calendar file"
set theLines to read theFile
set AppleScript's text item delimiters to {LF}
set theLines to text items of theLines
set AppleScript's text item delimiters to {","}
repeat with ThisLine in theLines
if (count of ThisLine) > 0 then --ignore blanks
set StartDate to date (text item 1 of ThisLine & " " & text item 2 of ThisLine)
set EndDate to date (text item 1 of ThisLine & " " & text item 3 of ThisLine)
set CalName to word 1 of text item 6 of ThisLine
tell application "iCal"
set CalList to title of every calendar
if CalName is in CalList then
repeat with CalNo from 1 to count of CalList
if CalName is item CalNo of CalList then exit repeat
end repeat
else
set NewOne to make new calendar at end of calendars with properties {title:CalName}
set CalNo to 1 + (count of CalList)
end if
tell calendar CalNo
set newItem to make new event at end of events with properties {start date:StartDate}
set summary of newItem to text item 4 of ThisLine
set end date of newItem to EndDate
end tell --calendar
end tell --iCal
end if
end repeat
set AppleScript's text item delimiters to OldDelimiters</pre>

Similar Messages

  • Importing txt-files in Labview

    Hello,
    I am a beginner in programming labview applications so its possible my next question is very easy to program but i dont know how
    My question is about importing a txt-file (csv-format) in labview. This txt-file is updated every 10 minutes and I want to visualise the last values every 10 minutes. These values must be written in several indicators (example: 10 coloms -> 10 indicators) 
    Next is a copy of the txt-file (this one is updated every second).
    17/05/2005 0:00:03,-0.2015457,13.99473,88.62115,-108.5054,25.05078,25.98672,26.86344,-8.207347E-03,-0.9357101,-0.9123873,-0.9192927,
    17/05/2005 0:00:04,-0.2015457,13.99473,88.62115,-108.5062,25.04688,25.98672,26.86344,-8.207347E-03,-0.9357101,-0.9123873,-0.9192927,
    17/05/2005 0:00:05,-0.2015457,13.99473,88.62115,-108.507,25.04297,25.98281,26.86344,-8.207347E-03,-0.9357101,-0.9123873,-0.9192927,
    17/05/2005 0:00:06,-0.2015457,13.99473,88.62115,-108.5085,25.04297,25.98281,26.86344,-8.207347E-03,-0.9357101,-0.9123873,-0.9192927,
    17/05/2005 0:00:07,-0.1940842,13.99473,88.62115,-108.5085,25.04297,25.97891,26.86344,-8.207347E-03,-0.9357101,-0.9123873,-0.9192927,
    I found a template (Load file from and display) thats displays a value from a txt-file.
    In the block: "Read LabView Measurement File" its possible to select an option to read from a generic text file, with the right delimiter and decimal point sign (, and .) and when i press the button read file now i see the values in the txt-file. But when I run the program i get a error with possible reason "End of file encountered".
    Next I put in the block "Wait until next ms Multiple" put still the same error appears.
    So this doesnt work!
    How can I solve my problem? Can somebody give me some usefull tips? Has someone else encountered this problem yet? ....
    Thank you.
    Regards,
    Kevin Duerloo
    Message Edited by Kevin Duerloo on 09-23-2005 04:49 AM

    Somnatic wrote:
    Hi Kevin
    Do you mind posting your VI ? Or are u only using the supplied example and nothing else ?
    Could it be your programm (which creates the file) doesn't close it when it's done creating?
    Try rebooting the system and immediately after that try the labview thing. Does the error still occur ?
    Hello,
    I'm only using the supplied example, the programm closes when it's done creating and rebooting doenst help.
    The error means end of file encountered so i think the file isnt updated quick enough for labview. I'm going to try error handling like JorisV said. I will keep you informed if this works or doesnt (I have a lot work so this will not be earlier than tomorrow)
    Thank you for the replies.
    Kevin

  • Import Palm desktop todos into iCal

    Hi all,
    does anybody found a solution yet how to import palm desktop todos into ical. The export function of Palm Desktop is only tap/line or palm desktop format. Or is there a software which could translate this into vcal or ical?
    Thanks alot in advance - Christoph

    When I export Tasks from "Palm Desktop 4.2.1 and HotSync Manager Rev D (Mac)" (downloaded from http://kb.palm.com/wps/portal/kb/common/article/33219_en.html) there are only two format options, namely, "Palm Desktop," and "Tab & Return."
    Both options create tab-delimited files without headers. Unfortunately, the dates in these files dates in these files contain commas because they are formatted as:
    longMonthName dd, ccyy
    I've tried converting these files with lots of CSV (or TSV)-> iCal converters but I couldn't get any of them to work except for Toodledo (toodledo.com):
    http://www.toodledo.com/connect_text.php
    If anyone knows any other utility or service that can import tasks that are exported from Palm Desktop for Mac, please post them in a reply.
    Thanks.
    - nello

  • Renaming files using a list of names in a txt or csv file

    Hello everyone,
    I'm trying to use AppleScript (although I'm a total noob to it) to rename the files in a folder (if possible using something like this - set folder to choose folder) to coincide to a list of names (in a txt or csv - can be any extension needed).
    To paint the picture clearer I'll have something like this
    Files_as_they_are
    Files_renamed
    01.mkv
    Valar Dohaeris.mkv
    02.mkv
    Mhysa.mkv
    Here is what I've tryed so far : (some point through the night I've tryed to repeat part of the process thus the "fcount" but the result was even worse)
    set theFolder to choose folder
    set ep to {"Valar Dohaeris", "Dark Wings, Dark Words"}
    set fcount to 1
    tell application "Finder"
      set name of file fcount of theFolder to item fcount of ep
    end tell
    set fcount to fcount + 1
    Tnx in advance...

    This will work with a comma separated text file,
    i.e.:
         Files as the are, Files Renamed
         01.mkv, Valar Dohaeris.mkv
         02.mkv, Mhysa.mkv
    Note that if the file to be renamed exists, it will be overwritten (A test can be added to skip if exists if needed)
    set theFoler to POSIX path of (choose folder with prompt "Choose folder with Files" default location path to desktop)
    set theFile to POSIX path of (choose file with prompt "Choose TXT file" default location path to desktop)
    do shell script "
    cd " & quoted form of theFoler & "
    while read line  
    do  
         OldImageName=${line%,*}
         NewImageName=${line#*,}
         if [ -e \"$OldImageName\" ] ; then
              mv \"$OldImageName\" \"$NewImageName\"
         else
              echo \"$OldImageName\" >> ~/Desktop/Errors.txt
         fi
    done < " & quoted form of theFile & "

  • Import TXT to oracle table

    Hi All,
    I`m using this script to import TXT to oracle table.
    create table test (
    pol_no varchar2(10)
    organization external (
    type oracle_loader
    default directory ri_data_dir
    access parameters (
    nobadfile
    fields terminated by ',')
    location ('policyno_20080229.TXT')
    reject limit unlimited
    but when i select * from test ;
    ODCIEXTTABLEOPEN callout

    funny, that you get that short error. I get:
    select * from test
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "nobadfile": expecting one of: "column, debug, exit, fields, records"
    KUP-01007: at line 1 column 1
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    ORA-06512: at line 1so, remove the unknown word "nobadfile", and it works fine. thank god that I have the verbose error handler!

  • How can I import contacts from iCloud to iCal in snow leopard?

    After upgrade software on iPhone (with iCloud) contacts of iCal on MAC (Snow Leopard) are no mre sync... with iPhone....
    As now I have all updated contacts on iCloud, how can I import contacts from iCloud to iCal in snow leopard?
    Thanks for help !!!!
    Marco

    Log in to icloud.com
    Select Contacts
    Click on the first contact
    Hold down shift and click on the last contact
    Click the gear box at the bottom of the screen
    Choose "Export vcard..."

  • Import data from csv to SQL database

    How to  Import data from csv to SQL database through BLS-xMII?

    Hi,
    if you using Oracle, you may also use the bulk insert with MII. You can use the String List to XML parser to convert your CSV to XML, and then use a query that calls a stored procedure which does the bulk insert.
    Also have a look at thread [read XML file into stored procedure|http://forums.sdn.sap.com/click.jspa?searchID=63850236&messageID=7455643].
    Michael

  • ODI - Produce .txt or .csv output file

    Hi Guru's,
    I am new to ODI and have hit a problem I am hoping someone could help me with!
    I have a table/datastore in MS SQL (2005) that I would like to use ODI to produce a .txt or .csv output file. I have looked into the documentation but cannot find an obvious way to do this - can someone please advise how this can be done?
    Many Thanks,
    Joe

    Hi Joe,
    Here is a link for an "Oracle by Example" explaining how to load to a flat file :
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_ff-to-ff/odi_project_flatfile-to-flatfile.htm
    You just need to change the LKM used to pick one for MS SQL.
    Regards,
    Jerome

  • Import txt file into user dictionary

    How to import text file into user dictionary through javascript? I can manually import txt file into user dictionary thru "Edit=>Spelling=>User dictionary...". But I don't know how to do it using javascript. Please advise.

    Advice? See in some version of the object-model reference under userDictionary. There you'll find a method called addWord(), which looks promising.
    Peter

  • How to create Store Procedure for export result select in .txt or .csv

    Hello,
    I'm using MSSQL Server.
    How to export results query  in .txt or .csv?
    But
    I can not use bcp or SQLCMD.

    1) linked server
    insert into txtsrv...table1#txt(CustomerNumber,CustomerName,EntryDate)
    select orderid, shipname, orderdate
    from Northwind..orders
    Set up the linked server
    Connecting a directory of text files as a linked server is easy.  Here’s how:
    In Windows, create a new directory for the linked server.  
    For this article, that directory will be E:\txtsvr. 
    Add that directory as a linked server with sp_addlinkedserver:
    EXEC sp_addlinkedserver txtsrv, 'Jet 4.0',
      'Microsoft.Jet.OLEDB.4.0', 'e:\txtsrv', NULL, 'Text' 
    That’s all that’s required to add the linked server txtsrv
     as a connection to the text files in E:\txtsvr, but there are
     no tables in txtsvr yet.  Also missing is a required file, schema.ini, 
    which must contain a description of each table’s format.  
    You can  learn more about schema.ini from the Microsoft MSDN Library,
     but for now, just use Notepad or your favorite text editor 
    to create the file e:\txtsrv\schema.ini as shown in Listing 1. 
     In addition, create an empty text file in e:\txtsrv named table1.txt.
    The file e:\txtsrv\table1.txt is now an empty table in the linked server txtsrv.  
    We can see that if we list information about all the tables in txtserv with 
    the system stored procedure sp_tables_ex:
    EXEC sp_addlinkedsrvlogin txtsrv, FALSE, Admin, NULL
    EXEC sp_tables_ex txtsrv
    Text files are tables
    We can’t issue a CREATE TABLE statement against this linked server, 
    but we have created a table easily enough.  We can, however, 
    run INSERT and SELECT queries, if we use the four-part naming 
    convention <server>…<table> (that’s three dots):
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to Import .txt files in ORACLE having 300 thousand records

    How to Import .txt files in ORACLE having 300 thousand records. Kindly help me in that context

    You can make use of Sql*Loader utility and You can also use External table technique for this puspose.
    For external table go through this link.
    http://www.oracle-base.com/articles/9i/ExternalTables9i.php
    Regards

  • .txt or CSV file to Database

    Hi-
    I have a text file generated by a Pulse Oximeter, What I want is, as the system recieves the file (in .txt of CSV) it automaticly is entered into a MySql Database or SQL Server and generates an SMS message. Thanks
    Regards
    Tayyab Hussain

    Web services imply using sychronous communication. However, the use case you describe implies that asynchronous, so-called fire-and-forget, communication is better suited to your needs.
    For example, with sychronous communication, the system is unaware of the exact moment a TXT or CSV file will come in. Also, when the system is processing a file, all other processing waits until the system finishes. This may cause synchronicity problems if multiple files come into the system in quick succession.
    ColdFusion has an asynchronous solution that suits every requirement of your use case. The following methods will enable you to receive the file, to automatically enter it into the database and to generate an SMS message. Use ColdFusion's DirectoryWatcher gateway to monitor the directory in which the TXT or CSV files are dropped, and ColdFusion's SMS event gateway to send SMS messages.
    Whenever a third party drops a file into the directory, an event is triggered, setting the DirectoryWatcher into action. Implement a query in the onAdd method of the DirectoryWatcher's listener CFC to store the file in the database.  Following the query, use the sendGatewayMessage method to send the SMS message.

  • HT2513 is it possible to import my contacts into my ical?

    is it possible to import my contacts into my ical?

    This is NOT what we (most of us) want to do ... We want to have the information from our contact(s) automatically be available in the calendar event. If we "invite" the contact, they get to see and are asked to respond (accept / decline / maybe) ... NOT always something we want. For example, I am going to an event and I want to remember their face (what they look like - maybe I've only met them once awhile ago), their spouses name, children or business profile / items and I don't want them to know I have made this one of my agenda items for the event. If I entered all this including their profile picture in contacts, I certainly don't want to enter it all again AND BTW, iCal doesn't really have the proper fields for this information anyway. Sure I can use the notes section but this is double entry. As you can see from just this one example, I would not want to invite them to this calendar entry. I can think of many other instances where that would be problematical (to say the leasat) as well.
    It is really incomprehansible that contact, iCal and even mail does not have at least this level of integration.

  • Importing Contacts from CSV without MS Outlook/Lot...

    I have PC Suite 7.0.8.2 running on WinXP Sp3 and have contacts in a spreadsheet that I need to import to my N95 software version 20.0.015. PC Suite Contacts (PCSC) is version 1.0
    If I save the spreadsheet data as a CSV, Unicode (or any other translation come to that) and attempt to import it via PCSC then Contacts "GPF"s and closes.
    If I export current phone contacts to a CSV file then I can re-import this file without problem. This exported file is reported by other applications such as Notepad and Open Office as being in Unicode format - hence my use of that format.
    Looking at my generated CSV and the one from PCSC the difference would seem to be quote marks. So I have tried making every element have a set of quote marks as the PCSC file has. Also setting the last element to each line to be a set of quote marks ("") as in the PCSC file. Or removing all "empty" elements at the end of a line as in the PCSC file. But still when attempting to import the file PCSC closes with an unexpected error.
    I don't have access to MS Outlook or Lotus Notes so using one of them as an intermediary is not an option. I do only need to do this once as I want my phone contacts to be the "Master" set once I've consolidated to the phone. That consolidation needs PCSC to manage to import from a CSV file though!
    Any one know how to make a "personally generated" csv file acceptable to PCSC?
    Solved!
    Go to Solution.

    So having spent a load more time attempting to do this I have, at last, managed to get the thing to work!
    So for any others having issues it seems that the data checking, when it finds an error just GPFs the application rather than report what it does not like! (Nokia people can you fix that?)
    All fields in the CSV should have " at the start and finish, even if nul/blank
    Every line should end in "" (as the heading line does when exporting from contacts)
    Phone numbers should not contain ( or ) but can contain +
    File should be saved in Unicode bigendian format (Notepad in XP can do that)
    Dates of Birth should be given as "YYYY-MM-DD"
    Any thing that notepad shows as a square should be removed
    I found that when doing the import the progress bar moved quickly to 49% then sat there until the operation was finished. It struck that the contacts were put onto the PC in the first 49% and then copied to the phone but I may be wrong about that.

  • I can't import .ics meeting requests to iCal (currently using iCloud)

    I can't import .ics meeting requests to iCal (currently using iCloud). Every time I drop it in or double click or import it it just doesn't show up. Is there a way round this or a setting I've not set up correctly?

    Greetings Gillian,
    Try dragging one of these invites out of Mail to the desktop.  It should show up with a ".ics" extension as you indicate in your post.  Double-click this file and see if iCal launches and offers you the invite in the lower left corner (or anywhere else for that matter).
    If nothing happens when you double-click the file from the desktop try the following:
    __Create a new user account on the Mac: http://docs.info.apple.com/article.html?path=Mac/10.6/en/8235.html
    __Put the .ics file you dragged to the desktop into Macintosh HD > Users > Shared
    __Log out of the current user and login as the new user you created
    __Go to Macintosh HD > Users > Shared in the new user and drag the .ics file to the desktop
    __Double-click the file on the desktop and see if iCal opens and offers to add the invite
    Let us know the results.

Maybe you are looking for

  • HELP DOWNLOAD ITUNES ON XP HOME [nothing works]

    So far i have tried to download itunes about 20 yes TWENTY times on my desktop,o/s windows xp home,service pack 3 same error as heaps of other people are getting 998 or error7 itunes failed to install corectly reistall itunes,same thing over and over

  • Question in Flat file GTC  Recon

    HI, I wanted to know how Reconciliation works in GTC with respect to Reconciliation Key. My requirement is ,i have a flat file with attributes firstname,lastname,empno and i would like to reconcile users from this file into OIM. OIM UserID will be ge

  • Looking for driver for SOUNDBLASTER LIVE 24bit & AUDIGY SE (CA0106) Ver 5.12.01.

    Im unable to get my Audigy onboard sound running and need to try some/lots of drivers until it is stating AUDIGY in the hardware manager More details: http://forums.creative.com/creativelabs/board/message?board.id=soundblaster&thread.id=23993 5.2.0.5

  • Best way to configure patching of multiple groups?

    Howdy, We're looking to start using Config Manager 2012 R2 to handle patching of our servers.  I'm looking for any advice or opinions as to how to set everything up to run in the best way. We have 3 primary groups that we want to update QA/Dev Pilot

  • 3rd Hard drive in Mac Pro quad:  Samsung

    I am trying to salvage a 6 month old 250 GB hard drive from a dying Wintel computer. It is a Samsung SP2514N. On Samsung's website, it is listed as ultra ATA 133 compatible with a UDMA 100 interface. On the drive itself, it lists : "250GB/7200rpm/8M/