# Run mp3tag within Apple Script

**URL:** https://community.mp3tag.de/t/run-mp3tag-within-apple-script/68326
**Category:** Mac
**Created:** [April 28, 2025, 6:06am UTC](https://community.mp3tag.de/t/run-mp3tag-within-apple-script/68326 "2025-04-28T06:06:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rajanna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/dec6dc/32.png) [@rajanna](https://community.mp3tag.de/u/rajanna)
#### Post date: [April 28, 2025, 6:06am UTC](https://community.mp3tag.de/t/run-mp3tag-within-apple-script/68326/1 "2025-04-28T06:06:06Z")

</div>

I want to write out the persistentID, play counts, etc from Apple Music library to mp3 and m4a directly.  
I am able to read the fields I need from Apple Music library thru Apple Script and export them to CSV.

From here I can import the CSV in mp3tag.

I understand Apple script can run any Application in macOS thru scripts.  
I want to write tags to m4a, mp3, directly with Apple script by loading mp3tag application.  
I am looking for some examples to load mp3tag and write tags from Apple scripts.  
Please help.

---

<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: [April 28, 2025, 8:13am UTC](https://community.mp3tag.de/t/run-mp3tag-within-apple-script/68326/2 "2025-04-28T08:13:31Z")

</div>

It's necessary for the target application to expose certain functionality to the AppleScript system. Mp3tag doesn't support AppleScript at the moment.

---

<div class="post-metadata">

### Author: ![rajanna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/dec6dc/32.png) [@rajanna](https://community.mp3tag.de/u/rajanna)
#### Post date: [April 28, 2025, 1:26pm UTC](https://community.mp3tag.de/t/run-mp3tag-within-apple-script/68326/3 "2025-04-28T13:26:27Z")

</div>

Ok  
Is it possible to running mp3tag on command line in terminal?
