[MlMt] Safari to Pinboard?

Benny Kjær Nielsen mailinglist at freron.com
Sat Aug 24 04:50:52 EDT 2013


On 24 Aug 2013, at 9:20, Nitin Goyal wrote:

> I need to do the following:
>
> 1. Capture Safari tab Title as "Subject".
> 2. Capture Safari tab URL as "Body".
> 3. Insert an email address in the "To" field.
> 4. Send email in the background.
>
> I have made a Keyboard Maestro macro to do the same. But, is doesn't 
> do it in
> background. It shows the compose window momentarily. How can this be 
> achieved via applescript or emate?

I assume you already have the Safari stuff working (in AppleScript). You 
can then  create and send the message using something very similar to 
the [Alfred 
example](http://www.alfredforum.com/topic/2354-add-support-for-mailmate-email-client/?p=17560) 
I created for you. You need to do something like the following:

	set mailto to create_mailto(safari_subject, safari_url, {}, email, 
name)
	set mailto to mailto & "&send-now=yes"


(And don't tell MailMate to `activate`.)

-- 
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20130824/ae4a6cd8/attachment.html>


More information about the mailmate mailing list