Read Photoshop document information outside of application
I've been banging my head against the wall over this for the last few hours, and I can't come up with a graceful solution on how best to handle it. I'm currently working on a .NET project, and it'd be really nice to have a way to read all the document information of a Photoshop file without having to actually open that document (for the processor's sake) in Photoshop. Hopefully, the document information would include size, profile, PS version, and color mode at least. Based off that information, I've got one of several hot folders that I would then send the file to.
I found a way to do this by using a StreamReader and searching for specific string matches (ex: "<photoshop:ColorMode>4</photoshop:ColorMode>"), but I found tag name variances in the different versions that made this a bit unreliable. Does anyone know of a better way to do this?