> Can't make "</p>" into a number. Silly Applescript thing : set AppleScript's text item delimiters to "</p>" + return + "<p>" + is used to added numbers, '&' is used to join strings. So that line should be: set AppleScript's text item delimiters to "</p>" & return & "<p>" HTH James.