# Help with script please :)

**URL:** https://community.metabrainz.org/t/help-with-script-please/431082
**Category:** MusicBrainz Picard
**Tags:** filenaming, taggerscript
**Created:** [June 7, 2019, 2:03pm UTC](https://community.metabrainz.org/t/help-with-script-please/431082 "2019-06-07T14:03:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![phonebox](https://community.metabrainz.org/user_avatar/community.metabrainz.org/phonebox/32/33216_2.png) [@phonebox](https://community.metabrainz.org/u/phonebox)
#### Post date: [June 8, 2019, 9:44am UTC](https://community.metabrainz.org/t/help-with-script-please/431082/2 "2019-06-08T09:44:21Z")

</div>

It’s quite simple when you know the way it works!

Links to the documentation: [`%tag%`](https://picard.musicbrainz.org/docs/tags/), [`$function()`](https://picard.musicbrainz.org/docs/scripting/).

Here’s how I accomplished your naming scheme. Just replace the “C:\MyMusic” in the _destination directory_ field with your own base path.

You may want to add `%tracknumber%` somewhere there. Or even `$num(%tracknumber%,2)` for padding the small numbers with zeros.

```taggerscript
%albumartist%/
%album%/
%artist%
 - 
%title%
$if(%bpm%, \(%bpm% bpm\))

```

Here’s the same in an image form. This example sets some constants so the script becomes more readable. (Learnt this from the [tagger script thread](https://community.metabrainz.org/t/repository-for-neat-file-name-string-patterns-and-tagger-script-snippets/2786/7).)

 ![picard-example1](https://community.metabrainz.org/uploads/default/original/3X/c/0/c0e1e99fb1918c1b3daa469659ebe35e96b6987f.png)

---

_[View the full topic](https://community.metabrainz.org/t/help-with-script-please/431082)._
