During the course of building a small song book sample, I encountered a silent crash in the File component when asking it to read a Media file with spaces embedded in the file name.
(I had a Google Sheet with spaces in its name, and the spaces came down into its PC file name. I used the Windows rename (F2) operation to copy its file name when building the //Filename text block, not noticing that the AI2 Media file upload had silently removed spaces from the file name.)
A slightly better response to a missing file pops up when the file request lacks spaces:
I see several bugs here:
- Silent crash (in Companion) when asked to read a Media file name with embedded spaces)
- Lack of a File Error event block to catch file errors
- Lack of a notfound parameter in the File Read block, like the TinyDB notfound value
- outmoded File block tool tips encouraging retyping file names instead of using the helper blocks holding Media File nams
GilbertAndSullivan (1).aia (6.2 KB)
A revised File Read block doc should point out where to look for the file name helper blocks, and how to express their locations by setting file location contexts before calling file operations.