Skip to main content
hamdifem
Inspiring
March 6, 2015
Question

for cs 6 flexible width command

  • March 6, 2015
  • 1 reply
  • 267 views

I'm appointed to command

I want to give flexible width of the text frame

This topic has been closed for replies.

1 reply

Jongware
Community Expert
Community Expert
March 6, 2015

‌Text frames are flexible (unless they are locked), so I presume you are requesting a script that resizes a text frame while typing. I don't believe that is possible with scripting.

Community Expert
March 7, 2015

Hm, that should be possible with an eventlistener on the app object listening for AFTER_SELECTION_CHANGED events by filtering out the one text frame you are typing in. The problem would be how to tell InDesign to stop the behavior, to stop the function that is doing the change on the text frame. For that you need a second script.

But why not using the flexible text frame options that come with the textFramePreferences? Namely:

autoSizingReferencePoint

autoSizingType

Uwe

//EDITED