Remove hyphenate throughout the file
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
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!");
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.