Skip to main content
Known Participant
April 15, 2014
Answered

Need to convert all text frames to intinal caps.

  • April 15, 2014
  • 1 reply
  • 776 views

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

This topic has been closed for replies.
Correct answer Larry G. Schneider

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)

1 reply

Larry G. Schneider
Community Expert
Larry G. SchneiderCommunity ExpertCorrect answer
Community Expert
April 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)

vinomannuAuthor
Known Participant
April 16, 2014

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

vinomannuAuthor
Known Participant
April 16, 2014

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