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


Click here to return to the 'An AppleScript to email Safari URLs with titles via Mail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to email Safari URLs with titles via Mail
Authored by: amit_kr on Mar 21, '03 01:11:57PM

I wanted the ability to do the same thing, and found a much simpler and convenient way. Drag the following "url" (actually a javascript) to your bookmark bar:

javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href)

and call it whatever (say 'e'). Since this is a bookmark (and not a folder), a hotkey is assigned to it (cmd-0 to cmd-9) by Safari.

Now, whenever you need to send the title/url to someone, just press the hotkey, and that's it!! a mail message is created with the title of the page as the subject, the url as the body, and selection on the "To:" field.

So one could select a part of the webpage, press cmd-c (to copy), cmd-2 (to compose mail with url and title already there), type in mail, tab twice, cmd-v (to paste the part), and send!



[ Reply to This | # ]
Bookmark option - yes
Authored by: Deut3221 on Mar 21, '03 01:41:42PM

Great hint!



[ Reply to This | # ]
sweet
Authored by: darndog on Mar 21, '03 01:59:15PM

Must be the first hint i have seen that i could activate with one mouse drag, Bravo! although i do feel sorry for the original poster...

darndog



[ Reply to This | # ]
An AppleScript to email Safari URLs with titles via Mail
Authored by: PancakeMan on Mar 21, '03 02:38:56PM

cool! this even solves my earlier issue of focusing on the To: field in Mail automatically!



[ Reply to This | # ]
wow.
Authored by: mikerose on Mar 21, '03 02:51:05PM

I just abandoned my effort to convert the Mail script to work with QuickMail -- the Javascript is outstanding! Should work with whatever mailer is set in Internet Prefs, I would think.

Rob, please amend the original hint with this inventive 2nd way.



[ Reply to This | # ]
An AppleScript to email Safari URLs with titles via Mail
Authored by: tjj on Mar 21, '03 03:50:36PM

Nice!
Also works in Camino (and any other browser that has java enabled?)



[ Reply to This | # ]
Excellent, excellent and excellent!
Authored by: sinjin on Mar 21, '03 04:24:14PM
I agree with mikerose, this is worth submitting as a hint. It is the single-most useful Safari hack/add-in/add-on/hint I've seen.

I applaud the original post, with the use of Applescript, and would love to see an Applescript as easy and useful. This hint has just piqued my interest into checking out javascript, though.

[ Reply to This | # ]

An AppleScript to email Safari URLs with titles via Mail
Authored by: luhmann on Mar 23, '03 10:14:16PM

I like this javascript. Is there a way to have it add any highlighted/selected text from the web page to the body of the e-mail message as well? I used to have a script that did this, but it didn't work with Safari.



[ Reply to This | # ]