Copy link to clipboard
Copied
my file is of around 50 pages and it contains lots of text boxes with hyphenate option ON, is there way or script to remove hyphenate throughout the file at once...
thanks in advance
This jsx script turns off hyphenation in an active document, also modifies Paragraph styles accordingly. The code isn't mine, sorry, couldn't detect original author now...
...Application.prototype.main=function()
{
if(this.documents.length>0)
{
var doc= this.activeDocument;
doc.stories.everyItem().hyphenation=false;
var paraSt = doc.paragraphStyles.everyItem().getElements();
for(var i=0; i<paraSt.length; i++)
{
if(paraSt.name.indexOf("[")==-1)
{
paraSt.hyphenation=false;
}
}
}
}
app.main();
alert("Hyphens removed!"
Copy link to clipboard
Copied
Did you not use paragraph styles?
Copy link to clipboard
Copied
This jsx script turns off hyphenation in an active document, also modifies Paragraph styles accordingly. The code isn't mine, sorry, couldn't detect original author now...
Application.prototype.main=function()
{
if(this.documents.length>0)
{
var doc= this.activeDocument;
doc.stories.everyItem().hyphenation=false;
var paraSt = doc.paragraphStyles.everyItem().getElements();
for(var i=0; i<paraSt.length; i++)
{
if(paraSt.name.indexOf("[")==-1)
{
paraSt.hyphenation=false;
}
}
}
}
app.main();
alert("Hyphens removed!");
Copy link to clipboard
Copied
Script written in March 2011 by Loic.Aigon, surely the best scripter from Toulouse, in France, I know! …
[Hi Loïc!]
(^/)
Copy link to clipboard
Copied
Thank You, Obi-wan, I'll write it down!
Copy link to clipboard
Copied
Light version:
app.activeDocument.stories.everyItem().texts[0].hyphenation = false;
var PStyle = app.activeDocument.allParagraphStyles;
for ( p = 1; p < PStyle.length; p++) PStyle
.hyphenation = false;
alert("Hyphens removed!");
(^/)
Copy link to clipboard
Copied
thanks, hope this might work for illustrator files also...
Copy link to clipboard
Copied
Hi,
Open paragraph panel from Type menu.. you will see the hyphenate option at the bottom of the panel. Turn it off. This Will override the style definations for the paragraphs.
If you have defined different paragraph styles in your document then you will need to edit each style(double click on the style name to open the dialog box) and turn off the hypenation.
-Aman
Copy link to clipboard
Copied
Yeah, that's exactly what the script does... in one click and even less seconds
Worth to bother installing if you have more than 1-2-3 para styles...
Find more inspiration, events, and resources on the new Adobe Community
Explore Now