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

Need to convert all text frames to intinal caps.

Community Beginner ,
Apr 15, 2014 Apr 15, 2014

Copy link to clipboard

Copied

Hi All,

I need to convert all text frames in the eps files the text should be first letter to be caps.

EXAMPLE:

" The Example Text In The Discussion"   to be " The example text in the discussion "

I am manually converting around 350 Eps files daily,

Any help!!!

regards,

Vinoth

TOPICS
Scripting

Views

663

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

Community Expert , Apr 15, 2014 Apr 15, 2014

You can do this in the UI by selecting the text and using Type>Change Case>Sentence Case. It seems that you can do the same thing using the following.

TextRange.changeCaseTo (type: CaseChangeType.SENTENCECASE)

Votes

Translate

Translate
Adobe
Community Expert ,
Apr 15, 2014 Apr 15, 2014

Copy link to clipboard

Copied

You can do this in the UI by selecting the text and using Type>Change Case>Sentence Case. It seems that you can do the same thing using the following.

TextRange.changeCaseTo (type: CaseChangeType.SENTENCECASE)

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
Community Beginner ,
Apr 16, 2014 Apr 16, 2014

Copy link to clipboard

Copied

Hi Larry,

Thanks for the reply.

Yes, excatly we do manually by Type>Change Case>Sentence Case

But i need this to be done in scripting. My Knowledge in scripting is not good.

Could you please help me regarding this issue.

regards,

Vinoth

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
Community Beginner ,
Apr 16, 2014 Apr 16, 2014

Copy link to clipboard

Copied

Hi Larry,

var doc = app.activeDocument;

var textFrames = activeDocument.textFrames;

for (var i = 0 ; i < textFrames.length; i++) {

app.activeDocument.textFrames[0].textRange.changeCaseTo (CaseChangeType.SENTENCECASE); }

It works only for one text frame, if i have multiple text frames the last text frame is been updated.

Could you please advise.

Regards,

Vinoth

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
Engaged ,
Apr 16, 2014 Apr 16, 2014

Copy link to clipboard

Copied

just change your textFrames[0] to textFrames

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
Community Beginner ,
Apr 17, 2014 Apr 17, 2014

Copy link to clipboard

Copied

LATEST

Great thanks to all !!!

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