Service with clipboard

Ok i was thinking that i could create a service to work with what ever i put on the clipboard and be accessible from all applications. Is this not possible? I’d like to right click on any text and have it passed to the web with the following script.


set the clipboard to Unicode text of (the clipboard as record)


tell application "Safari"
	activate
	open location "http://co-iistest/caseportal/Default.aspx"
	delay 2
	tell application "System Events"
		keystroke "bbenjamin"
		keystroke tab
		keystroke "benjamin"
		keystroke return
	end tell
end tell

log clipboard
set copyPaste to the clipboard
log copyPaste
delay 2
tell application "System Events"
	keystroke copyPaste
	keystroke return
end tell