customizing the discogs script

hi,

I want to customizing the discogs script but have no real scripting experience, so I would be really thankful if someone could help me out here.

I would like to put the "Label" info from the discogs website in the "Composer" tag and the "Catalog#" in the "Comment" tag.

There other thing i was wondering about: is it possible to use the discogs script and the information from the website to rename folders, for example:
[Catalog#] Artist - Album (Year)
[CAT 173 CD] AFX - Chosen Lords (2006)

I guess those are really newbie questions but it would be great if someone could help me out here.

Many Thanks in advance, tagwerk

You just have to change e.g.
outputto "Discogs_Catalog"
to
outputto "Comment"

Rename folder by tag:
/t/8037/1

thank you very much for your quick help.
it all worked out perfectly except for one thing:
when i try renaming the folders with the following format:

[%comment%] %artist% - %album% (%year%)

it leaves out the brackets so that instead of:
[CAT 173 CD] AFX - Chosen Lords (2006)

I just get:
CAT 173 CD AFX - Chosen Lords (2006)

Is there any way to fix this or am I just missing something?!
Thanks again.

Maybe you've missed reading the Mp3tag help files in deep.
Read section "Characters with special functionality" at end of the page: https://docs.mp3tag.de/scripting

If the COMMENT tag field is empty and using the above format string, then you will get a result string of " CD AFX - Chosen Lords (2006)"
To suppress a leading white space youe should better code the format string [%comment% ]%artist% - %album% (%year%)
If you want to have square bracket in all cases around the content of the COMMENT tag field, then you have to escape the special meaning of reserved characters in the Mp3tag scripting language.
You have to put the single quote around the reserved characters if you want to use them unparsed.

'['%comment%']' %artist% - %album% (%year%)

It is also possible to escape the complete format string in one step.

'[%comment%] %artist% - %album% (%year%)'

DD.20091006.1104.CEST