I have been trying to figure out why this is not working for about 4 hours. I must be missing something.
Any help is appreciated.
$set(_ScriptVer, .016)
$noop(Required tags Library. Next line sets up the default values to be used when a required tag is missing)
$setmulti(_ReqTags,splfnversion; tracknumber; title; artist; album; version)
$setmulti(_ReqDefaults,%_ScriptVer%; 1; Unknown; Unknown; Unknown; 1)
$noop(------------------MAIN SCRIPT--------------)
$noop(
Loop through each entry in the _ReqTags variable, checking to see if that tag exists in the current file and has a value.
)
$foreach(_ReqTags,
$noop(
1. Check for the existence of the selected _RegTags entry.
2. If the tag does not exist in the file, then we create it and set the value to the corresponding entry
in the multi _ReqDefaults.
)
$if($not($get(%_loop_value%)),
$set(%_loop_value%,$getmulti(%_ReqDefaults%,%_loop_count%))
,
)
)