I guess I was thinking of just passing some bit of information that Jaikoz had available - folder path in this case.
The particular use case I had in mind was to add replaygain values when I run auto correct. I have a shell script that uses metaflac to do it on all the files in a given directory and I was looking for a way to add this to the list of tasks but I can see many such applications other than this. Just about anything you can imagine you can script - the question is what parameters could Jaikoz pass to the script.