The history and meaning of the key 'enter'
Within programming there are some small bits of code that accomplish those same actions. In the past the apple operating system used to accomplish both actions (carriage return and line feed), by inputting the code ‘\r’. Now both the Linux and apple operating systems use ‘\n’. Microsoft windows uses ‘\r\n’.
var csvfileentry = "Subject,Start Date,Start Time,End Date,End Time,All Day Event,Description,Location,Private";
finalcsv += (csvfileentry + "\r\n");
As I discussed yesterday, the first entry I needed in my CSV file for calendar import was the information: Subject,Start Date,Start Time,End Date,End Time,All Day Event,Description, Location,Private. This information describes to the calendar what each section of data means when it’s being imported. However for csv formatting this isn’t enough, you also need to designate the carriage return and line feed, in order for each calendar event to be effectively separated.
finalcsv += (csvfileentry + "\r\n");
In order to make this CSV file applicable for all calendar formats, we simply tack on both bits to the end of each calendar entry, as well as the starting entry. This page on the Google help forums is where I found some helpful information on how to adjust the file to the appropriate format for import.
Up Next Time: Some simple functions to adjust my time formatting