Description: This script will create a link tag from the front Safari window ready to paste in to you blog for example.
Requirement: Mac OS 10.3.x

(*
  Simple script to create a tag from the front Safari window 
  2005-06-12 by Fredrik Jonsson <mailto(colon)fredrik(at)combonet(dot)se>
  home page <http://xdeb.org/wiki/AppleScript>
*)
 
tell application "Safari"
  activate
  set the_title to the name of window 1
  set the_url to the URL of document 1
  set the_link to "<a href=\"" & the_url & "\">" & the_title & "</a>"
  set the clipboard to the_link
end tell