Rather than parsing .par files, store and read the objectives with putvar / getvar. There is also an undocumented variable "ObjectiveLong" and "ObjectiveShort", but since it's undocumented I don't know if it does exactly what you want.