Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'An AppleScript to automate HTML link construction' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to automate HTML link construction
Authored by: NovaScotian on May 10, '07 09:52:53AM
The second form needs a few escapes for the quotes before and after the URL:
set the_url to the clipboard
set temp to display dialog 
	"Please enter the link text" default answer "here"
set link_text to text returned of temp
set the_text to "<a href=\"" & the_url 
	& "\"" & " target=_blank>" & link_text & "</a>"
set the clipboard to the_text

[ Reply to This | # ]