In another context, see here for a OCR macro that sets the OCR language according to a trigger value:
For more information, see the wiki Searching the Forum for Answers section.