# Running a Web Script over multiple files

**URL:** https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732
**Category:** General Discussion
**Created:** [February 1, 2020, 6:44pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732 "2020-02-01T18:44:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![edrikk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/c37758/32.png) [@edrikk](https://community.mp3tag.de/u/edrikk)
#### Post date: [February 1, 2020, 6:44pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/1 "2020-02-01T18:44:55Z")

</div>

Hi there,

I've never 'needed' to do this before, but now that I do, I can't find a way to do it... And searches didn't surface anything.

I'd like to run a web script (which may prompt for selection of proper match) across multiple files. Each file is different, so the script _should_ be called separately to pull web data for each file selected.

It seems that multi-selecting in mp3tag today causes the web script to be called once (for the first item), and the results applied to all files, which I can't think of a proper use case for.

Cany anyone comment/provide insight? Or even a workaround excluding purely manual.

Thanks!

---

<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: [February 1, 2020, 7:00pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/2 "2020-02-01T19:00:45Z")

</div>

The idea of web source scripts is to scan through one page of web content and then assign the found data to tag fields.  
So if you can create a single web page that shows the sought after data for all the files then you are fine.  
I think that this is currently not possible (starting with creating such a web page) so that you have to call the web source script for each individual file separately.  
That's the way it currently is.

---

<div class="post-metadata">

### Author: ![edrikk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/c37758/32.png) [@edrikk](https://community.mp3tag.de/u/edrikk)
#### Post date: [February 1, 2020, 8:53pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/3 "2020-02-01T20:53:48Z")

</div>

Understood.

I guess the feature request here is that if multiple files are selected, the web script should be called once for each file in the selection. The rest of current design would remain as is.

---

<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: [February 1, 2020, 9:03pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/4 "2020-02-01T21:03:18Z")

</div>

The basic question then is: how should MP3tag know when you want to treat each file separately or as a group.

---

<div class="post-metadata">

### Author: ![edrikk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/c37758/32.png) [@edrikk](https://community.mp3tag.de/u/edrikk)
#### Post date: [February 2, 2020, 2:38pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/5 "2020-02-02T14:38:32Z")

</div>

I would guess that the usecase I'm putting forth is more common (e.g. people want to update all their music files etc), and should be default behavior.

But there could be a setting as well.... Either in the general settings, or in the pop-up that initiates the process (e.g. entering the search criteria).

---

<div class="post-metadata">

### Author: ![edrikk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/c37758/32.png) [@edrikk](https://community.mp3tag.de/u/edrikk)
#### Post date: [February 16, 2020, 11:50pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/6 "2020-02-16T23:50:02Z")

</div>

@Florian is there any possibility of adding this as an enhancement?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 17, 2020, 9:12am UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/7 "2020-02-17T09:12:25Z")

</div>

It's on my internal list of ideas for future enhancements but not something that is planned for the near future.

If you need to tag individual files via an online source, I suggest looking into MusicBrainz Picard. It's pretty good in identifying individual tracks by their acoustic fingerprint.

---

<div class="post-metadata">

### Author: ![edrikk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/c37758/32.png) [@edrikk](https://community.mp3tag.de/u/edrikk)
#### Post date: [February 17, 2020, 11:44pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/8 "2020-02-17T23:44:09Z")

</div>

Ok thanks Florian.

Actually I was looking at running iTunes and IMDB Web Scripts across multiple unrelated movies.  
It's good to know that it's on your list though 🙂

Thanks!

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [October 9, 2020, 7:11pm UTC](https://community.mp3tag.de/t/running-a-web-script-over-multiple-files/47732/9 "2020-10-09T19:11:26Z")

</div>

I had to make an autohotkey script for that as detailed here:

> [@Is is possible to have mp3tag do a "walk"?](https://community.mp3tag.de/t/is-is-possible-to-have-mp3tag-do-a-walk/18815):
>
> Every track in a directory has a unique refid that is tied to a DB containing per song metadata. I figured out how to do issue a no-confirm command (unchecked "show message after save" and issued the appropriate key strokes [two enter keystrokes]) and would like to perform a "walk" down the list. Can mp3tag do this or can direct me another forum post here or elsewhere where a 3P program, say autohotkey or something, can do the trick? EDIT: Here's a quick autohotkey script that does the trick…
