Skip to main content
dublove
Legend
Sep 18, 2025 4:03 PM UTC
Question

How to make an image the same width as a selected text box using a script?

Make the image the same width as the textFrame, then place the image on top and align it to the left.
There are two scenarios:

the image is outside the textFrame or the image is inserted inside the textFrame.


There may be multiple images, but only one textFrame

1 reply

Mike Witherell
Community Expert
Community Expert
Oct 14, 2025 11:48 AM UTC

Why not simply make an Object Style? It would be just as fast.

Translate
Mike Witherell