<pre>-- This version is no-frills. It creates an HTML-table from a table of data.-- For an Excel spreadsheet saved as text:  get tableHTML(table,tab)function tableHTML table,delimiter  ---  set the itemDelimiter to delimiter  ---  put "<table><tr>" & return & return into HTML  ---  repeat with x = 1 to the number of lines of table    ---    put "<tr>" & return after HTML    repeat with y = 1 to the number of items of line x of table      put "<td>" & item y of line x of table & "</td>" & return after HTML    end repeat    put "</tr>" & return & return after HTML    ---  end repeat  ---  put "</table>" after HTML  return HTML  ---end tableHTML-- This version allows the table to be specified in more detail.-- This version also creates a hyperlink of the first item of each line.function tableHTML table,delimiter,tWidth,tBorder,cPad,cSpace  ---  get "width=" & tWidth && "border=" & tBorder && "cellpadding=" & cPad && "cellspacing=" & cSpace  put "<table" && it & "><tr>" & return & return into HTML  ---  set the itemDelimiter to delimiter  ---  repeat with x = 1 to the number of lines of table    ---    put "<tr>" & return after HTML    put "<td>" & hyperLink(the short id of this cd,item 1 of line x of table) & "</td>" & return after HTML    ---    repeat with y = 2 to the number of items of line x of table      put "<td>" & item y of line x of table & "</td>" & return after HTML    end repeat    ---    put "</tr>" & return & return after HTML  end repeat  ---  put "</table>" after HTML  return HTML  ---end tableHTML</pre>