Send Link From Firefox to Mail.app

I've been using Firefox since upgrading to Snow Leopard because my favorite plug-in for Safari doesn't work in Snow Leo yet. One thing I really miss from Safari is the ability to send a link to the current webpage I'm on straight to Mail.app. Mail would create a new message with the link in the body and the website title as the subject. I want to re-create this in Firefox, but I haven't been able to find a Firefox add on or plug-in that does it. I know there's a "send link" command in Firefox, but for some reason it doesn't work. Is there a way to use Applescript to make a script that would take the URL of the current website I'm on and send that link to Mail and paste it into a new email?

MacBook Pro, Mac OS X (10.6.1)

Posted on Oct 1, 2009 7:57 PM

Reply
2 replies

Oct 2, 2009 5:42 AM in response to normalchildhood

I know there's a "send link" command in Firefox, but for some reason it doesn't work.


I just checked with the French version of Firefox 3.5.3. On my computer, the “send link” command (« Envoyer un lien vers la page… » in French) works perfectly well in Snow Leopard.

Nevertheless, the following script should do what you are asking for:

tell application "Firefox" to activate
tell application "System Events"
keystroke "l" using {command down} -- select the URL
delay 0.25
keystroke "c" using {command down} -- copy the URL to the clipboard
end tell
delay 0.25
tell application "Mail"
set newMessage to make new outgoing message with properties {content:(the clipboard) & return & return, visible:true}
activate
end tell

If you wish to improve the above script, you might have a look at the example script “Create New Message.scpt” in the folder “Library/Scripts/Mail Scripts” of your Macintosh HD.

Message was edited by: Pierre L. — added two “delay 0.25” (hoping it will work properly now)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Send Link From Firefox to Mail.app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.