InDesignCS2 Layer Scripting

Dear All,

Does anyone having any request related to below requirement.

This document is having three Layers named FLORIDA, CALIFORNIA, & NATIONAL. All these three layers are having different styles name. I need a script to check no other styles get applied on those layers. FLORIDA layers styles containing “(FL)” , CALIFORNICA contains “(CA)”, etc. Can we write a log file if any others styles are applied on that. If no errors are there then Log files will be empty and content is “File has been parsed, and having no errors.”

Second, we have to check swatches applied on those layers. “CA Spot Black” should applied on CALIFORNIA & “FL Spot Black” should applied on FLORIDA layer. If any errors then we have to write it in the log file.