Possible to summarize arrays…?
Posted: Wed Jun 19, 2013 11:18 pm
Hello everyone
I have a script that does some fairly complicated sorting of production files by pushing segments of file names into an array and sorting on those values to determine the order to SendToData for output.
I have a request to be able to provide a production report for a given file processing operation that needs to summarize the number of distinct file sizes/media processed and also provide for total files processed.
Is it possible to summarize values in an array and obtain counts of the number of occurrences based on different values within the array?
Can anyone point me in the right direction on this? I've tried Google, but I can't get any clear indication if what I need is possible.
If not, is there some way to write the array info into an XML file and push this through an XSLT to get what I need?
Thanks in advance for any help.
Regards,
William Buckingham
I have a script that does some fairly complicated sorting of production files by pushing segments of file names into an array and sorting on those values to determine the order to SendToData for output.
I have a request to be able to provide a production report for a given file processing operation that needs to summarize the number of distinct file sizes/media processed and also provide for total files processed.
Is it possible to summarize values in an array and obtain counts of the number of occurrences based on different values within the array?
Can anyone point me in the right direction on this? I've tried Google, but I can't get any clear indication if what I need is possible.
If not, is there some way to write the array info into an XML file and push this through an XSLT to get what I need?
Thanks in advance for any help.
Regards,
William Buckingham