repeat with pdfFileRecord in the filesWithAnInvalidType of the listOfPdfsToSend
set theFileInfo to info for (alias of the pdfFileRecord)
if the extension of pdfFileRecord is not "pdf" then
set userReply to display dialog "File \"" & filename of pdfFileRecord & "\" does not have a name ending in \".pdf\". This file cannot be processed. Would you like to automaticaly rename this file to \"" & the filename of pdfFileRecord & ".pdf\"?" buttons {"No, quit now", "No, skip file", "Yes"} default button 3