i am about to embark on a filenaming script. out of interest does the picard language support more of a multiline approach with setting, testing and building variables with multiple branches / separate naming statements…or does everything have to be done ‘on one line’.
i will have a lot of conditions, like original year present, discnumber present, disc subtitle present, various artist album artist…manual path tag present…ive shyed away from doing this in picard as it looked daunting with that many nested if statements. now youve done it, do you have any thoughts.
What I do to format my file naming script are the following two steps:
Save the filename or the full path to a temporary variable with $set(_path,abc) where abc is my filenaming script that includes newlines and tabs to format and indent nested functions/brackets.
Remove these formatting characters (which are invalid for file paths and would cause trouble for Picard IIRC) and output the constructed path with $rreplace(%_path%,[\\t\\n]+,).
Edit: These posts should probably be split into a new topic.