Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How to divide all textFrames in one-character-per-textFrame?

Explorer ,
Jan 24, 2011 Jan 24, 2011

Copy link to clipboard

Copied

Hello:

How to divide all textFrames in one-character-per-textFrame?

Example: the textFrame "Letters" will be divided in 7 textFrames: "L", "e", "t", "t", "e", "r", "s".

Help, please.

TOPICS
Scripting

Views

23.8K

Likes

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

correct answers 1 Correct answer

Adobe Community Professional , Mar 05, 2011 Mar 05, 2011
Hi Victor, here's the JS version, sorry for the delay#target Illustrator//  script.description = splits selected texFrame into separate characters;//  script.required = select a point text textFrame before running;//  script.parent = CarlosCanto;  // 3/5/11//  script.elegant = false;var idoc = app.activeDocument;var tWord = idoc.selection[0];var xpos = tWord.position[0];var ypos = tWord.position[1];var charCount = tWord.characters.length;for (i=charCount-1 ; i>=0 ; i--)     {          var ichar ...

Likes

Translate

Translate
New Here ,
Oct 23, 2013 Oct 23, 2013

Copy link to clipboard

Copied

Hi Carlos, I've been reading a lot of your responses across several related topics and I think you may be able to help me.

I edit a lot of pdfs from CAD programs and Excel files in Illustrator CS6. Often the pdfs text imports each letter as an individual frame. I found a script called "JoinTextFrames" which allows me to relink the individual letters together when the are selected mannualy as a word or number value.

The script works alright but especially in the excel files it gets tedious to select each group of numbers or string of letters. Also, its not consistant with puctuation like commas, periods or other glyphs.

Would you know a better way script Illustrator to search say at an artboard level; and go across a document identifying each word/number group, based on the coordinates that are touching, to make whole words and numbers?

Long time Adobe user but noob at scripting, Sorry for the long reply. Thanks!

Likes

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 Community Professional ,
Oct 24, 2013 Oct 24, 2013

Copy link to clipboard

Copied

interesting, not sure if it can be easily accomplished...can you share a file?

Likes

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
New Here ,
Oct 25, 2013 Oct 25, 2013

Copy link to clipboard

Copied

Carlos, I've sent you a private message with links to sample files. Thanks for offering to take a look!

Likes

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
New Here ,
Nov 19, 2013 Nov 19, 2013

Copy link to clipboard

Copied

Many Thanks to CarlosCanta who provided me an excellent script for merging text intelligently!

Likes

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
New Here ,
Jan 05, 2014 Jan 05, 2014

Copy link to clipboard

Copied

diagonal.pngthis was very very helpful guys thank you all ..

i just wanted some help when applying the same division functionality on a diagonal text frame , i.e a rotated text frame that's neither perfectly vertical nor horizontal

the image i attached shows a diagonal case of those i'm dealig with

thnx in advance

Likes

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 Community Professional ,
Jan 13, 2014 Jan 13, 2014

Copy link to clipboard

Copied

Hi Sarah, not as easy as I though...stay tuned

Likes

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
New Here ,
Jul 13, 2015 Jul 13, 2015

Copy link to clipboard

Copied

hi,

i want to use this script inside Indesgin CS3 ME,CS5.5 ME. it's very important to me

Thank you

Likes

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 Community Professional ,
Jul 13, 2015 Jul 13, 2015

Copy link to clipboard

Copied

sorry but this is for Illustrator only script, try asking in the ID scripting forum if someone could rewrite it to make it work in ID.

Likes

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
New Here ,
May 18, 2016 May 18, 2016

Copy link to clipboard

Copied

Thanks man!!!! Very hepful,

Likes

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
Explorer ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

Hi Carlos,

When I use either your 'characters' or 'words' script, I get the following error message.  I'm using CC2019.

 

Screen Shot 2019-10-28 at 2.35.26 PM.png

Any ideas why that's happening?

Likes

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
Community Beginner ,
Oct 28, 2019 Oct 28, 2019

Copy link to clipboard

Copied

I receive the same error, and would also love this function to pieces.
Adobe CC 2019 on MacAdobe CC 2019 on Mac

Likes

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
New Here ,
May 18, 2015 May 18, 2015

Copy link to clipboard

Copied

sorry to be such a noobie, but what am I supposed to do with this buch of text ? I tried to copy it text edit, then save it, then rename the extension to .js and place it in the script folder of my illustrator but I have always error to load. Am I doing things correctly ?

Likes

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
Guide ,
May 18, 2015 May 18, 2015

Copy link to clipboard

Copied

I would recommend saving as .jsx not .js

Note: if you are on pc and you don't have extensions of known file types showing, then it may not be changing the extension properly.

using the ESTK is recommended.

also there is more then 1 script folders.

the path should be like this...

C:\Program Files\Adobe\Adobe Illustrator CC 2014\Presets\en_GB\Scripts

once saved in there you will need to restart illustrator

Likes

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 Community Professional ,
May 18, 2015 May 18, 2015

Copy link to clipboard

Copied

not being familiar with mac, I guess you have to save as Plain Text, Text Edit's default is Rich Text, right?

Likes

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
Guide ,
May 18, 2015 May 18, 2015

Copy link to clipboard

Copied

Guess its worth recommending the use of ESTK.

it is happy to save JSX in the correct format.

well it should be...

Thats why it exists.

Likes

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 Community Professional ,
May 18, 2015 May 18, 2015

Copy link to clipboard

Copied

true, but for some strange reason, non-scripters have a really hard time finding and/or using it...every time I have suggested it over the years.

Likes

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
Guide ,
May 18, 2015 May 18, 2015

Copy link to clipboard

Copied

for those running Win7 ( and prob win 8 or 10 😞

Press the Win key, win key.JPG

then type extendscript.

first option should be your extendscript toolkit

start.JPG

Likes

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
Mentor ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

It's the same via OSX using spotlight search: "extendscript" (you will then see the Extendscript Toolkit)

Likes

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
Mentor ,
May 19, 2015 May 19, 2015

Copy link to clipboard

Copied

CarlosCanto wrote:

not being familiar with mac, I guess you have to save as Plain Text, Text Edit's default is Rich Text, right?

OSX TextEdit app defaults to rich text, it can be changed per document to "plain text" via:

Format (menu) > Make Plain Text

Or can be made the default for new documents via:

Preferences (menu) > Format > Plain Text

Likes

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
Community Beginner ,
Jan 11, 2017 Jan 11, 2017

Copy link to clipboard

Copied

Hi Carlos,

This is brilliant. I too have a small request. Can you please give me a script where I can split a paragraph into individual lines. For example, if there is a paragraph with 10 lines, the final output after executing the code should be 10 different lines. It will save tons of my time. Thanking you in anticipation....

Likes

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 Community Professional ,
Jan 11, 2017 Jan 11, 2017

Copy link to clipboard

Copied

sure, use DivideTextFrame script by Wundes, look here

wundes.com

Likes

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
Community Beginner ,
Jan 12, 2017 Jan 12, 2017

Copy link to clipboard

Copied

Thanks Man.

Likes

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
New Here ,
Sep 09, 2020 Sep 09, 2020

Copy link to clipboard

Copied

Hi Carlos,

 

I tried your script splitSelectedWordsIntoCharacters.jsx, saved it as a JSX files, opened it through the Adobe Illustrator 2020 File > Scripts > Other scripts... Menu but I got the below error. Same happend when I tried the JS script. Could you tell me what I'm doing wrong? It seems to be working for everyone else. I'm on a Windows 10 OS.

 

sonjageracsek_0-1599665163364.png

 

Likes

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
New Here ,
Aug 02, 2021 Aug 02, 2021

Copy link to clipboard

Copied

LATEST

Hey carlos tried this script in illustrator2021 doesnt work.

can you make a new one for 2021 🙂

Likes

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
New Here ,
Jul 16, 2015 Jul 16, 2015

Copy link to clipboard

Copied

Hola. Trato de hacer una macro Excel que hace el contrario de oneCharacterPerTFrame(). Quiero fusionar unos textFrames en solo uno. Me puede ayudar por favor? Gracias por su respuesta.

Hello. I'm trying to make an Excel macro that does the opposite . I mean I want to merge textFrames into only one.

Likes

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