Acid_Raccoon

Q: Import data from Excel to iCal?

Hey,

 

I'm trying to import date from en Excel file to iCal. I have a column with dates, one with start times, one with the location and one with the events.

Is there an app to help me? Perhaps some Automator actions? I've never worked with Applescript before though...

Mac OS X (10.6.7)

Posted on Jun 27, 2011 6:28 AM

Close

Q: Import data from Excel to iCal?

  • All replies
  • Helpful answers

Previous Page 2
  • by Austin Kinsella1,

    Austin Kinsella1 Austin Kinsella1 Sep 17, 2011 4:44 PM in response to alisagaylon
    Level 6 (11,514 points)
    Mac OS X
    Sep 17, 2011 4:44 PM in response to alisagaylon

    I'm delighted you found it, 'cos without a copy of Office 2011 I would have been struggling. Don't be too free with the beer offers - I've cousins in Chicago (who hasn't!) that I might pop over to visit.

  • by eloy622,

    eloy622 eloy622 Oct 9, 2011 9:08 AM in response to Acid_Raccoon
    Level 1 (0 points)
    Oct 9, 2011 9:08 AM in response to Acid_Raccoon

    i could use some help doing the same process. I make a weekly schedule on excel for my job. it contains names, days of the week and start and end time. I would like to automatically send to ical and have events created for me. Im not sure what my spreadsheet needs to llok like in order to work with ical..help?

  • by Austin Kinsella1,

    Austin Kinsella1 Austin Kinsella1 Oct 10, 2011 3:34 AM in response to eloy622
    Level 6 (11,514 points)
    Mac OS X
    Oct 10, 2011 3:34 AM in response to eloy622

    Look in the comments at the start of the script posted back in June. If you are using this script, you should change the line "set TheCalendar to FindInList(Chosen, CalList)" to "set TheCalendar to FindInList(item 1 of Chosen, CalList)"

  • by RRepsaj,

    RRepsaj RRepsaj Aug 24, 2012 8:17 AM in response to Austin Kinsella1
    Level 1 (0 points)
    Aug 24, 2012 8:17 AM in response to Austin Kinsella1

    Thanks - that is VERY useful!

     

    BTW I couldn't find the cell format you mentioned but used, 'Custom' 'dd/mm/yyyy hh:mm'. This worked perfectly.

     

    What'll you have to drink?

  • by Austin Kinsella1,

    Austin Kinsella1 Austin Kinsella1 Aug 24, 2012 12:24 PM in response to RRepsaj
    Level 6 (11,514 points)
    Mac OS X
    Aug 24, 2012 12:24 PM in response to RRepsaj

    Glad it helped. Coffee, thanks!

  • by shoptheworldprinceton,

    shoptheworldprinceton shoptheworldprinceton Aug 27, 2012 10:00 AM in response to Acid_Raccoon
    Level 1 (0 points)
    Aug 27, 2012 10:00 AM in response to Acid_Raccoon

    Hi,

    Thanks so much for the script it was running fine up until it asked me to have title and start columns. I fixed this then tried again but for some reason it didn't work.

     

    Here is what the spreadsheet looked like.

    TitleStart
    Letters For Solar28-Aug-12
    Write Letter to Liz Cutler28-Aug-12
    Make Go Kart30-Aug-12
    Clean Room29-Aug-12
    Organize/ Buy New School Supplies

    29-Aug-12

     

    Also I was wondering if there was any way to import the priority and reminders using the spreadsheet.

     

    Thanks,

  • by Austin Kinsella1,

    Austin Kinsella1 Austin Kinsella1 Aug 27, 2012 10:28 AM in response to shoptheworldprinceton
    Level 6 (11,514 points)
    Mac OS X
    Aug 27, 2012 10:28 AM in response to shoptheworldprinceton

    The heading on your 2nd column should be Start Date. Or you could modify the script to just look for the word Start.

     

    By reminders you possibly mean what my version of iCal calls "To Dos". Yes, you could modify the script to make these instead of events, and assign them a priority.

  • by shoptheworldprinceton,

    shoptheworldprinceton shoptheworldprinceton Oct 21, 2012 7:09 AM in response to Austin Kinsella1
    Level 1 (0 points)
    Oct 21, 2012 7:09 AM in response to Austin Kinsella1

    Quick question is there a way to reverse the screen on your mac or mirror it.

  • by Fat Mike,

    Fat Mike Fat Mike May 10, 2014 1:41 PM in response to Acid_Raccoon
    Level 1 (0 points)
    May 10, 2014 1:41 PM in response to Acid_Raccoon

    Hello!

     

    This was just what i did needed too! But can anyone help to update that script so that i can add there allso "ALL DAY" event? There was some scripts about it where "ALL DAY" event where marked in exel colum TRUE / FALSE.

     

    Here is thet script with TITLE, START and END colums...

     

    on open DroppedFile

              tell application "Microsoft Excel"

      open DroppedFile

                        set UsedCells to value of used range of sheet 1

      quit --remove this if Excel sholud stay open

              end tell

              set SummaryCol to FindInList("Title", item 1 of UsedCells)

              set StartCol to FindInList("Start", item 1 of UsedCells)

              set EndCol to FindInList("End", item 1 of UsedCells)

              tell application "Calendar"

                        set CalList to title of every calendar

              end tell

              set Chosen to choose from list CalList with prompt "Choose calender for the new events"

              if Chosen is not false then

                        set TheCalendar to FindInList(Chosen, CalList)

                        if (SummaryCol > 0) and (StartCol > 0) and (EndCol > 0) then --REQUIRE Title, Start and End

                                  set DescripCol to FindInList("Description", item 1 of UsedCells) --look for additional items

                                  set LocCol to FindInList("Location", item 1 of UsedCells)

                                  if (count of item 1 of UsedCells) > 1 then --there are some data rows

                                            set UsedCells to rest of UsedCells

                                            repeat with AnEvent in UsedCells

                                                      set theSummary to (item SummaryCol of AnEvent)

                                                      set TheStart to (item StartCol of AnEvent)

                                                      set TheEnd to (item EndCol of AnEvent)

                                                      tell application "Calendar"

                                                                tell calendar TheCalendar

                                                                          set CalEvent to make new event at end of events with properties {summary:theSummary, start date:TheStart, end date:TheEnd}

                                                                          if LocCol > 0 then set location of CalEvent to item LocCol of AnEvent

                                                                          if DescripCol > 0 then set description of CalEvent to item DescripCol of AnEvent

                                                                end tell --calendar

                                                      end tell --iCal

                                            end repeat --AnEvent

                                  end if --are datarows

                        else

                                  display dialog "Spreadsheet must have Title, Start, and End columns" with icon stop

                        end if --missing headers

              end if --no calendar selected

    end open

     

    on FindInList(Needle, HayStack)

              set FoundAt to 0

              if Needle is in HayStack then

                        repeat with FoundAt from 1 to count of HayStack

                                  if Needle is item FoundAt of HayStack then exit repeat

                        end repeat

              end if

              return FoundAt

    end FindInList

  • by Anthonys Germa,

    Anthonys Germa Anthonys Germa Mar 27, 2016 12:20 PM in response to Austin Kinsella1
    Level 1 (4 points)
    Applications
    Mar 27, 2016 12:20 PM in response to Austin Kinsella1

    Hey there!

     

    I tried it and unfortunately it saved the calendar as a Birthday and I can't delete it as it not associated with a contact..

  • by Anthonys Germa,

    Anthonys Germa Anthonys Germa Mar 27, 2016 6:00 PM in response to Anthonys Germa
    Level 1 (4 points)
    Applications
    Mar 27, 2016 6:00 PM in response to Anthonys Germa

    I forgot to say thanks!

     

    Your script seems really good but Im a newbie an cannot find the mistake that makes it transfer the schedule into a birthday calendar even tho its not the one i chose. But at least I know how to delete it now

Previous Page 2