Copy link to clipboard
Copied
Hi,
When resizing a text frame using Applescript, modifying the width property, not only the text frame size changes, but the text is stretched.
Does anyone know how I can prevent this from happening ?
tell application "Adobe Illustrator"
set myDoc to the current document
tell myDoc
set myFrame to page item "test"
set the width of myFrame to 300
set book to false
end tell
endtell
Any Suggestions ?
Thanks
Copy link to clipboard
Copied
Bonjour,
C'est normal, il faut agir sur le cadre du texte :
TextPath
A path or list of paths for area or path text. A path consists of path points that define its geometry.
en JavaScript :
// tu as écrit set the width of myFrame to 300 identique à areaText.width = 300
areaText.textPath.width = 300;
Copy link to clipboard
Copied
Hi,
Thank you for your response. Your provided solution works. Apparently, changing the dimensions of the text frame in Illustrator is not the same as the same operation performed in Indesign.
When using the groups of the text frames, the result is the same. When extending the width of a group of text frames manually, the result is fine. When changing the width of the group of text frames using scripting, the result is stretched again....