Use the b_UsingInDesign system variable to execute different blocks of code in your macros, depending if the current script is being generated using QuarkXPress.
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 185595, last updated on 08-Apr-2021