Script to align 2 objects vertical + horizontal with one click?
I would like to be able to select two objects (usually a text frame and a shape) and align by BOTH vertical and horizontal centers with one click and/or keyboard shortcut. I letter comics which involves centering text over a speech balloon/text box repeatedly. Having to align twice each time a change is made to either one is really inefficient.
This user seemed to be looking for the same exact solution as me, and posted a solution, but InDesign doesn’t recognize the script when I save the text as a JSX file. It is from several years ago so I don’t know if my attempt to use the script is incorrect, or if it’s outdated somehow.
If someone knows a script that can do this, or can help me troubleshoot using the one above, that would be amazing!
