Thank you so much for your response Jeremy! I wasn't able to get the code working, however: an error message saying that a statement cannot begin with # came up. I did a bit of searching and figured this was some sort of parameter declaration, and is specified in the ImageJ Wiki, so it confuses me as to why it's not recognizing its own syntax.
Alternatively, I did try the Multi-Plot tool, and I was able to get the data that I needed. It was strange, though.. I've never been able to see all the profiles plotted like that.
I appreciate the help!