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
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)
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)
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
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
Copy link to clipboard
Copied
just change your textFrames[0] to textFrames
Copy link to clipboard
Copied
Great thanks to all !!!