Skip to content

Instantly share code, notes, and snippets.

@junctionseven
junctionseven / gist:5125f3d70ad3905ff4d0
Created January 23, 2015 21:24
OSX JavaScript for Automation example for parsing email content into a Numbers Spreadsheet.
function splitBody (body)
{
// Edit out some of the unnessesary text
var str = body.replace("(Sent via iInHabit)", "");
str = str.replace("\n\n", "");
// Get rid of the preambles
str = str.replace("Name:", "");
str = str.replace("Email Address:", "");