# Tips: Insert video into markdown notes

**URL:** <https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717>\
**Category:** DEVONthink\
**Tags:** automation, devonthink3\
**Created:** [October 5, 2020, 3:22pm UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717 "2020-10-05T15:22:17Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Fu.nyanderful](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/f/3bc359/32.png) [@Fu.nyanderful](https://discourse.devontechnologies.com/u/Fu.nyanderful)\
**Post date:** [October 6, 2020, 11:47am UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/22 "2020-10-06T11:47:54Z")

</div>

Hahahaha I really often encounter bugs! emmm, sorry… where should this line of code be added?

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 6, 2020, 11:49am UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/23 "2020-10-06T11:49:29Z")

</div>

It should replace this line:

```auto
if recordType as string is "quicktime" then
```

---

<div class="post-metadata">

**Author:** ![Fu.nyanderful](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/f/3bc359/32.png) [@Fu.nyanderful](https://discourse.devontechnologies.com/u/Fu.nyanderful)\
**Post date:** [October 6, 2020, 11:54am UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/24 "2020-10-06T11:54:04Z")

</div>

😭 it works! Thank you so much!

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 6, 2020, 1:10pm UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/25 "2020-10-06T13:10:22Z")

</div>

I’ve updated the above script, just in case that anyone else wants to use it.

---

<div class="post-metadata">

**Author:** ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)\
**Post date:** [October 6, 2020, 9:18pm UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/26 "2020-10-06T21:18:08Z")

</div>

> [@cgrunenberg](#):
>
> It doesn’t make a difference whether it’s in the menu or toolbar over here, the conversion of the type to a string fails. The mysteries of AppleScript 🤔

Yep, had a hard time figuring that out. Only happens with compiled/cached scripts.

Maybe a hint should be added to DEVONthink’s AppleScript dictionary?

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 7, 2020, 7:36am UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/27 "2020-10-07T07:36:01Z")

</div>

> [@pete31](#):
>
> Yep, had a hard time figuring that out. Only happens with compiled/cached scripts.

And it doesn’t affect all types.

> [@](#):
>
> Maybe a hint should be added to DEVONthink’s AppleScript dictionary?

Where would be the best place?

---

<div class="post-metadata">

**Author:** ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)\
**Post date:** [October 7, 2020, 7:41am UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/28 "2020-10-07T07:41:58Z")

</div>

> [@cgrunenberg](#):
>
> Where would be the best place?

record:

`type	get	type3	The type of a record. HERE'S FREE SPACE, I think :)`

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 7, 2020, 7:50am UTC](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717/29 "2020-10-07T07:50:20Z")

</div>

> [@pete31](#):
>
> HERE’S FREE SPACE, I think 🙂

Done.

[Previous page](https://discourse.devontechnologies.com/t/tips-insert-video-into-markdown-notes/58717.md?page=1)
