The following applescript obtains the selected text from within a web page and adds the title of the page along with the date that the page was last modified and the current date. I would like to be able to change the last modified date and the current date to a smaller font and make it in italics. Can anyone suggest a way of doing this without launching another application.
tell application "Safari"
set selecTxt to (do JavaScript "(getSelection())" in document 1)
set pgTitl to (do JavaScript "document.title" in document 1)
set pgDate to (do JavaScript "document.lastModified" in document 1)
set myURL to URL of front document
set copyText to selecTxt & return & return & pgTitl & return & myURL & return & "Last Modified:" & pgDate & return & (current date)
set the clipboard to copyText
end tell