# How to set thumbnails as raw data?

**URL:** <https://discourse.devontechnologies.com/t/how-to-set-thumbnails-as-raw-data/55696>\
**Category:** Automation\
**Created:** [May 15, 2020, 5:38pm UTC](https://discourse.devontechnologies.com/t/how-to-set-thumbnails-as-raw-data/55696 "2020-05-15T17:38:54Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [May 15, 2020, 5:38pm UTC](https://discourse.devontechnologies.com/t/how-to-set-thumbnails-as-raw-data/55696/1 "2020-05-15T17:38:54Z")

</div>

Trying to set thumbnails with the result of [ImageMagick](https://imagemagick.org/index.php) conversions. The dictionary says:

`Setting supports both raw data and strings containing paths or URLs.`

but I can’t find a way to set a thumbnail as raw data (which is `as «class **** »` or `as list of real or real` I think). The only thing that works is setting a record’s thumbnail to the thumbnail of another record.

Is this possible?

---

<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:** [May 18, 2020, 12:31pm UTC](https://discourse.devontechnologies.com/t/how-to-set-thumbnails-as-raw-data/55696/2 "2020-05-18T12:31:10Z")

</div>

> [@pete31](#):
>
> The only thing that works is setting a record’s thumbnail to the thumbnail of another record.

That’s currently the only way due to AppleScript limitations, therefore you could e.g. write the data to a temporary file.

---

<div class="post-metadata">

**Author:** ![mhucka](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/mhucka/32/28691_2.png) [@mhucka](https://discourse.devontechnologies.com/u/mhucka)\
**Post date:** [January 22, 2022, 5:25pm UTC](https://discourse.devontechnologies.com/t/how-to-set-thumbnails-as-raw-data/55696/3 "2022-01-22T17:25:28Z")

</div>

> [@pete31](#):
>
> The only thing that works is setting a record’s thumbnail to the thumbnail of another record.

> [@cgrunenberg](#):
>
> That’s currently the only way due to AppleScript limitations

This issue came up again in another [recent discussion](https://discourse.devontechnologies.com/t/applescript-to-set-thumbnail-of-group-to-same-as-parent-group/69114). I’m just putting a pointer here, in case someone else in the future comes along and doesn’t notice this (IMHO) very unexpected detail about AppleScript in this case.
