# Updating embedded coverimage files in block

**URL:** https://community.mp3tag.de/t/updating-embedded-coverimage-files-in-block/14815
**Category:** General Discussion
**Created:** [June 18, 2013, 6:43am UTC](https://community.mp3tag.de/t/updating-embedded-coverimage-files-in-block/14815 "2013-06-18T06:43:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gsa999](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/c6cbf5/32.png) [@gsa999](https://community.mp3tag.de/u/gsa999)
#### Post date: [June 18, 2013, 6:43am UTC](https://community.mp3tag.de/t/updating-embedded-coverimage-files-in-block/14815/1 "2013-06-18T06:43:58Z")

</div>

Hi  
I have recently started to collect larger image files for cover art. Previously I used 200x200 file called folder.jpg, but now also have files in SOME folders called albumartlarge.jpg.

I have an Action that embeds the folder.jpg image file into each mp3. I have created a copy of this and changed folder.jpg to albumartlarge.jpg.

Trouble is not all folders currently have the larger image file, so I need a bit of code that does something like this. I want to make this change in block across all my music files

If it finds albumartlarge.jpg then embed into mp3 (and replace folder.jpg)  
If it cant find albumartlarge.jpg do nothing (folder.jpg is already embedded in all my files) without erroring out

How do I do this please  
Thanks  
G

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 18, 2013, 7:25am UTC](https://community.mp3tag.de/t/updating-embedded-coverimage-files-in-block/14815/2 "2013-06-18T07:25:48Z")

</div>

> [@gsa999](#):
>
> Hi  
> ...an Action that embeds the folder.jpg ...If it finds albumartlarge.jpg ...

AFAIK: if the named file does not exist then the action does not do anything, so no harm should be done.

But: if you entered \*.jpg instead of a fixed filename then the routine will take the first jpg-file it finds in the folder.  
And as A (as in "albumartlarge") comes before f (as in "folder") the albumartlarge file should be taken...
