View Single Post
Couple of typos might make more sense like this:

Code:
property pTitle : "Put labelled link in clipboard as RTF"
property pVer : "0.2"

set {strURL, strTitle} to {"", ""}

set strURL to text returned of (display dialog "Enter a URL:" default answer "http://" with title pTitle)
set strTitle to text returned of (display dialog "Enter a title for the link:" & linefeed & linefeed & strURL default answer "" with title pTitle)

if (strURL is not "") and (strTitle is not "") then
	set strHTML to quoted form of ("<font face=\"helvetica\"><a href=\"" & strURL & "\">" & strTitle & "</a></font>")
	do shell script "echo " & strHTML & "  | textutil -format html -convert rtf -inputencoding UTF-8 -stdin -stdout | pbcopy -Prefer rtf"
	
	display dialog "Labelled link in clipboard as RTF" buttons {"OK"} default button "OK" with title pTitle & "  ver. " & pVer
end if