Automator Get Value of Variable loses elements of a list
I'd like a variable in Automator to keep a list of file names to be deleted at the end of the workflow. I set the value of a variable to the list of the file names, then when I get the value of the variable only the first file name in the list exists.
The work flow is attached. The beginning file is a pdf file with eight pages. The Split PDF action will create a PDF file for each page. Set Value of Variable will put all eight file names into the variable FileList. However, Get Value of Variable only shows the first file name. The rest of the list is lost.
Any clues what the cause is? What's a workaround that perhaps uses shell scripts or AppleScript?
Mike
iMac 27″, macOS 10.15