Extract weekdays and month names from timestamp

Here comes my Mp3tag Export Scripting code, that no one can pay.
I feel like after punching a stack of 1024 punch cards.
Hopefully it can help to solve your problem.

In this state the script gives plenty of room to play with.
Try out changing the $puts to $put and see what information will be displayed in the output file.
Tweak the variable intOutputMax to set the maximal number of items to be written out.

If you have understood what is going on there, then do the fine tuning.
Tie the code lines together and make the code human unreadable by removing the line feeds at the right places.
Hopefully you get human readable output.

01: $filename($getEnv('USERPROFILE')'\Desktop\TEST.4.txt',UTF-8)

02: $loop($sub(999999999,%_counter%))
03: $puts(intOutputMax,20)
04: $puts(intOutputCount,$if($eql(%_counter%,1),0,$get(intOutputCount)))
05: $puts(blnExcludeFileExt,$if($eql(%_counter%,1),0,$get(blnExcludeFileExt)))
06: $puts(blnExcludeFolder,$if($eql(%_counter%,1),0,$get(blnExcludeFolder)))
07: $puts(blnExcludeOutput,$if($eql(%_counter%,1),0,$get(blnExcludeOutput)))
08: $repeat('=',80)
09: $puts(REM,'File Nr ..........: '%_counter%)
10: $puts(REM,'strOutputText ....: ')$puts(strOutputText,''%TITLE%'')
11: $puts(REM,'intOutputCount ...: ')$puts(intOutputCount,$add(1,$get(intOutputCount)))
12: $puts(REM,'blnExcludeOutput : ')$puts(blnExcludeOutput,$ifgreater($get(intOutputCount),$get(intOutputMax),1,0))
13: $puts(REM,'blnExcludeFolder : ')$puts(blnExcludeFolder,$ifgreater($strstr('|Edit|Edits|edit|edits|','|'%_directory%'|'),0,1,0))
14: $puts(REM,'blnExcludeFileExt : ')$puts(blnExcludeFileExt,$ifgreater($strstr('|mp3|m4a|','|'%_extension%'|'),0,0,1))
15: $puts(REM,'blnCountDown .....: ')$puts(blnCountDown,$ifgreater($add($get(blnExcludeFolder),$get(blnExcludeFileExt),$get(blnExcludeOutput)),0,1,0))
16: $puts(REM,'intOutputCount ...: ')$puts(intOutputCount,$ifgreater($get(blnCountDown),0,$sub($get(intOutputCount),1),$get(intOutputCount)))
17: $ifgreater($get(blnExcludeFileExt),0,'# Excluded FileExt: '%_extension%' | '%_path%,
18: $ifgreater($get(blnExcludeFolder),0,'# Excluded Folder : '%_folderpath%,
19: $ifgreater($get(blnExcludeOutput),0,'# Excluded File : '%_path%,
20: 'Item Nr ..........: '$get(intOutputCount)
21: 'Item String ......: '$get(strOutputText))))
22: $loopend()
23: $repeat('=',80)

DD.20120608.2150.CEST