• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[CC2018] Text stretched when resizing text frame using width property

Contributor ,
May 11, 2018 May 11, 2018

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 ?

Schermafbeelding 2018-05-11 om 17.06.05.png  Schermafbeelding 2018-05-11 om 17.05.53.png

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

TOPICS
Scripting

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Advocate ,
May 11, 2018 May 11, 2018

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;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 14, 2018 May 14, 2018

Copy link to clipboard

Copied

LATEST

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....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines