# Intro to assigning tag fields with scripting on Mac

**URL:** https://community.mp3tag.de/t/intro-to-assigning-tag-fields-with-scripting-on-mac/60909
**Category:** Mac
**Created:** [May 6, 2023, 7:04pm UTC](https://community.mp3tag.de/t/intro-to-assigning-tag-fields-with-scripting-on-mac/60909 "2023-05-06T19:04:06Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [May 6, 2023, 7:14pm UTC](https://community.mp3tag.de/t/intro-to-assigning-tag-fields-with-scripting-on-mac/60909/2 "2023-05-06T19:14:12Z")

</div>

> [@greybeard](#):
>
> ### Assign Beatles to the Title and Yellow Submarine to the Artist
> 
> Source format: `Beatles - Yellow Submarine`  
> Formatstring: `%artist% - %title%`

The headline claims something different from the actual example.  
The example assigns "Beatles" to ARTIST and "Yellow Submarine" to TITLE.

There are many ways to skin a cat - but I think that the action of the type "Format tag field" is a little easier as you can select the target field from a list of fields.  
See also the documentation:

> [@Quick Actions and Action Groups](https://community.mp3tag.de/t/quick-actions-and-action-groups/51882#format-tag-field-5):
>
> Mp3tag for Mac provides a variety of Actions, which can be used on filenames and tags. The actions can be applied individually via Actions → Quick Actions ⌥⌘ 6 or be grouped into named and reusable Action Groups via Actions → Actions ⌘ 6. Action Groups serve as repeatable workflows in Mp3tag for Mac. When using Quick Actions you can select one of the different available action types from the list. This action will be applied to the selected files and the changes are saved immediately. Tip 1…

> [@greybeard](#):
>
> I find it much easier to work in _Actions_ vs. _Quick Actions_ when trying to refine a complicated script

You are right: use the Actions if you want to keep the script definition.  
Some actions like "Replace" are one-offs in many cases, so it may not be worthwhile to save the configuration. But that depends on the use-case.

---

_[View the full topic](https://community.mp3tag.de/t/intro-to-assigning-tag-fields-with-scripting-on-mac/60909)._
