This puts the URL of the current page in Safari in the body of an email and sends it to the address specified in the script. Useful for quickly forwarding links from one computer to another. If you have the BCC field visible, you’ll need to insert another “keystroke tab” between the two already there. (Requires UI scripting enabled.)
--Email Current Web Address to Self
tell application "System Events"
tell application "Safari" to activate
tell process "Safari" to keystroke "i" using command down & shift down
delay 1
keystroke "YourEmail@YourDomain.com"
keystroke tab
keystroke tab
keystroke "Web Address"
keystroke "d" using command down & shift down
delay 1
keystroke "h" using command down
end tell