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


Click here to return to the '10.4: Send Safari link via Mail and drag-and-drop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Send Safari link via Mail and drag-and-drop
Authored by: mahakali on May 12, '05 02:14:51PM

Or you can send the link in the background using applescript and command line. It'll reveal your machine's IP address, though, so i'll use it for sending links to people I know very well. Any command line master know how to tweak the command to make it use other smtp server?

tell application "Safari"
	set the_subject to name of front window
	set the_url to URL of front document
	set email_add to the text returned of (display dialog "enter recipient's address" default answer "someone@some.domain")
	do shell script "echo \"" & the_url & "\" | mail -s \"" & the_subject & "\" " & email_add
end tell


[ Reply to This | # ]