# Quote from Safari/Chrome to Obsidian with Keyboard Maestro on macOS

**URL:** <https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011>\
**Category:** Workflows & Templates\
**Tags:** macos\
**Created:** [July 9, 2020, 5:17pm UTC](https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011 "2020-07-09T17:17:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanjamurphy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryanjamurphy/32/334_2.png) [@ryanjamurphy](https://forum.obsidian.md/u/ryanjamurphy)\
**Post date:** [July 9, 2020, 5:17pm UTC](https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011/1 "2020-07-09T17:17:34Z")

</div>

There are many solutions out there for clipping text from the web into Obsidian. If you use [Keyboard Maestro](https://www.keyboardmaestro.com) on macOS, this one might be the simplest and most customizable of all.

This Keyboard Maestro macro takes selected text in either Safari or Chrome and places it in your clipboard in the following form:

```auto
> quoted text
    - [Website title](website link)

```

The result looks like:

 ![Screen Shot 2020-07-09 at 11.15.29 AM](https://forum.obsidian.md/uploads/default/original/2X/a/ab856db1cb1e0a0b82f6997b987acd5602739dc4.png)  
(Depending, of course, on your theming!)

Here’s what the macro looks like:

 ![Screen Shot 2020-07-09 at 11.16.30 AM](https://forum.obsidian.md/uploads/default/original/2X/c/c649f7be539e4e77ca608575979180bff81b27c7.png)

And [here’s an exported version for you to import into Keyboard Maestro.](https://axle.design/files/_Quote-to-Obsidian.kmmacros)

---

<div class="post-metadata">

**Author:** ![michaelhauser](https://forum.obsidian.md/user_avatar/forum.obsidian.md/michaelhauser/32/5129_2.png) [@michaelhauser](https://forum.obsidian.md/u/michaelhauser)\
**Post date:** [October 14, 2020, 9:12am UTC](https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011/2 "2020-10-14T09:12:03Z")

</div>

Thanks for this! I modified it so that it’ll work with or without a text selection and also changed the format slightly.

 ![Screen Shot 2020-10-14 at 2.02.20 AM](https://forum.obsidian.md/uploads/default/original/2X/4/478c5a2a2fd19c0b3999702f6c96c7a1734c71b2.png)

---

<div class="post-metadata">

**Author:** ![rdr](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rdr/32/5018_2.png) [@rdr](https://forum.obsidian.md/u/rdr)\
**Post date:** [October 15, 2020, 8:28pm UTC](https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011/3 "2020-10-15T20:28:35Z")

</div>

@michaelhauser, this is great!

I took it one step further by installing clipdown from [https://github.com/jhuckaby/clipdown](https://github.com/jhuckaby/clipdown). This tool converts clipboard test to markdown. My Keyboard Maestro macro extends your work by saving to the clipboard either a) the title and location of a web page (if no text is selected), or the selected text formatted as markdown and the title/location fo the web page.

In addition to your work, my macro builds on a technique described in the KM forum (using the ClipboardSeed() function) for determining whether the clipboard has changed so as to determine whether any text is selected when the macro is invoked.

– Robert

 ![image](https://forum.obsidian.md/uploads/default/original/2X/3/3d4ad9d387cdaa5cc8516f03325d45fc016a6150.png)

---

<div class="post-metadata">

**Author:** ![Gaston](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@Gaston](https://forum.obsidian.md/u/Gaston)\
**Post date:** [November 26, 2020, 10:55pm UTC](https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011/4 "2020-11-26T22:55:28Z")

</div>

Thanks for this macro, Ryan. Just tweaked it to suit my purposes and am very much liking it.

---

<div class="post-metadata">

**Author:** ![buxtehude](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@buxtehude](https://forum.obsidian.md/u/buxtehude)\
**Post date:** [December 31, 2020, 6:57pm UTC](https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011/5 "2020-12-31T18:57:42Z")

</div>

I’d love to test your macro, would you please share the file?

---

<div class="post-metadata">

**Author:** ![rdr](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rdr/32/5018_2.png) [@rdr](https://forum.obsidian.md/u/rdr)\
**Post date:** [December 31, 2020, 9:17pm UTC](https://forum.obsidian.md/t/quote-from-safari-chrome-to-obsidian-with-keyboard-maestro-on-macos/3011/6 "2020-12-31T21:17:19Z")

</div>

Sure, see attached. Though it’s still in there, note that I’ve commented out the reliance on Clipdown after the release of Obsidian 0.10.1, which natively supports the conversion on HTML to Markdown.

– Robert

[Quote to Obsidian.kmmacros.zip](https://forum.obsidian.md/uploads/short-url/yJpwPa16lq4UXJZV8ZDPfGE2fVS.zip) (2.2 KB)
