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


Click here to return to the 'Slightly improved ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Slightly improved ...
Authored by: Gnarlodious on Mar 07, '05 08:55:45PM
Thanks for a great idea! But it did not work here (10.3.7), I had to remove the part about the record and ktxt. I also added " target='_new'" to force the page to open in a new window/tab AND replaced the doublequotes with singlequotes (as they need no escaping):
 
set targetApp to (path to frontmost application as Unicode text)
tell application targetApp to activate
tell application "System Events"
	tell process targetApp
		keystroke "x" using {command down}
		keystroke "<a href='"
		keystroke (the clipboard)
		keystroke "' target='_new'>"
		keystroke "v" using {command down}
		keystroke "</a>"
	end tell
end tell
-- Gnarlie's Applescript page (Link pasted with the above script!)

[ # ]