Reading iCal info from file to make iCal event
问题 I have a file (/test.txt) that contains iCal event info. Friday, May 6, 2011 4:00:00 PM 05/08/2011 11:20:00 PM summary location Friday, May 6, 2011 4:00:00 PM 05/08/2011 11:20:00 PM summary location And this is the applescript to read this file to make iCal event. set Names to paragraphs of (read ("/test.txt")) set my_list to {} set temp_list to {} repeat with nextLine in Names if length of nextLine is greater than 0 then set temp_list to temp_list & nextLine else copy temp_list to end of my