Use the b_UsingInDesign system variable to execute different blocks of code in your macros, depending if the current script is being generated using InDesign.
Such code branches can be needed if a macro contains attributes that are specified differently in QuarkXPress and InDesign, such as electronic bold and italics or skewing, as well as pasteboard offsets when using textbox positioning macro functions.
Topic 185590, last updated on 08-Apr-2021