Please provide the script story Splitter by Adi Ravid?

Hello

I'm working on a book complex and need to separate stories threaded in many places. I know that I can do it manually via the editor of history but have really set my eyes on the script to split history created by Adi Ravid. I found its place @ the Adobe Exchange website (http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail & loc = en_us & extid = 1302 # 518), but get an error "sorry, we have encountered an error while processing your request." - also when pressing on ' author Email: Adi Ravid.

So, someone who has the script, please report it here could?

Thank you very much in advance

/*

------------------------------------------------------------------------------------------ ------------------------

StorySplitter

------------------------------------------------------------------------------------------ ------------------------

A JavaScript InDesign CS/CS2/CS3 by FourAces

On the final 2006 touch

Version 3.0.0

Divides history chosen to separate blocks of text, while maintaining their content.

------------------------------------------------------------------------------------------ ------------------------

*/

var myScriptVer = "3.0"

If (app.documents.length! = 0) {}

mySelection var = app.activeDocument.selection;

If (mySelection.length! = 0) {}

myObjectType = mySelection [0].constructor.name;

If (myObjectType == "TextFrame") {}

The dialog box Interface

myDialog = app.dialogs.add var ({name: 'History Splitter v' + myScriptVer});

{with (MyDialog)}

{with (dialogColumns.Add ())}

with (dialogRows.add ()) {}

{with (borderPanels.Add ())}

var mySplitOptions = radiobuttonGroups.add ();

{with (mySplitOptions)}

radiobuttonControls.add ({staticLabel: "Split all frames", checkedState:true});})

radiobuttonControls.add ({staticLabel: "Scinder front Selected Frame"});

radiobuttonControls.add ({staticLabel: "Scinder after Selected Frame"});

}

}

}

with (dialogRows.add ()) {}

staticTexts.add ({staticLabel: "© The Final Touch"});

}

}

}

Ditto var = myDialog.show({name:"SplitOptions"});)

if(myResult == true) {}

monarticle var = mySelection [0] .parentStory;

If (App.version.Split(".") [0] >= 5){

var myTextFrames = myStory.textContainers;

}

else {}

var myTextFrames = myStory.textFrames;

}

var myStoryFramesCount = myTextFrames.length;

If (myStoryFramesCount > 1) {}

for (f = 0; f< mystoryframescount;="">

{If (mySelection [0] == {[f] myStory.textFrames)}

var myTextFrame = f;

}

}

{Switch (mySplitOptions.selectedButton)}

case 0:

mySplitAll();

break;

case 1:

mySplitBefore();

break;

case 2:

mySplitAfter();

break;

}

}

else {}

Alert ("are you kidding Me? \nThe history you selected has only a SINGLE block of text. ») ;

}

}

}

else {}

Alert ("Selection\nYou evil chosen the wrong type of object. Please select a block of text. ») ;

}

}

else {}

Alert ("No selection Made. \nPlease specify a history split.");

}

}

else {}

Alert ("No. Active Document Found. ("\nPlease open an InDesign document and select a story to split.");

}

//----------------------------------------------------------------------------

function mySplitAll() {}

for (i = 0; i< mystoryframescount;="">

myTextFrames [i] .duplicate ();

}

for (i = 0; i< mystoryframescount;="">

If (App.version.Split(".") [0] >= 5){

myTextFrames [i] .remove ();

}

else {}

myTextFrames [0] .remove ();

}

}

}

function mySplitBefore() {}

If (.previousTextFrame mySelection [0] == null) {}

Alert ("unable to break Thread. \nThe selected text block is the FIRST block of text in the thread.");

}

else {}

var myBfBreakFrame = .previousTextFrame mySelection [0];

var myAfBreakFrame = mySelection [0];

var myBreakStory = myBfBreakFrame.parentStory;

mySelection [0] .previousTextFrame = null;

if(myBfBreakFrame.Overflows == true) {}

var myOversetText = myBreakStory.texts.itemByRange (myBfBreakFrame.insertionPoints [-1], anointed myBreakStory.insertionP [-1]);

myOversetText.select ();

App.Cut ();

App.Select(myAfBreakFrame.insertionPoints[0]);

App.Paste ();

}

}

}

function mySplitAfter() {}

If (.nextTextFrame mySelection [0] == null) {}

Alert ("unable to break Thread. \nThe selected text block is the LAST block of text in the thread.");

}

else {}

var myBfBreakFrame = mySelection [0];

var myAfBreakFrame = .nextTextFrame mySelection [0];

var myBreakStory = myBfBreakFrame.parentStory;

mySelection [0] .nextTextFrame = null;

if(myBfBreakFrame.Overflows == true) {}

var myOversetText = myBreakStory.texts.itemByRange (myBfBreakFrame.insertionPoints [-1], anointed myBreakStory.insertionP [-1]);

myOversetText.select ();

App.Cut ();

App.Select(myAfBreakFrame.insertionPoints[0]);

App.Paste ();

}

}

}

Tags: InDesign

Similar Questions

Maybe you are looking for

  • Airport Extreme, Time Capsule best practices configuration

    I searched for articles showing exactly what are the settings that I would see in my Airport Extreme Time Capsule. I put in place of the years before, but more recently WIFI was slow or choked several times a day. Our internet service provider recent

  • Facebook in the center column, not load 3

    I recently downloaded Firefox 6 and Facebook was working fine but all of a sudden yesterday it started to load all the content to the bottom of the center column instead of on the left and right. I noticed on the wall of their help, that others have

  • can not access my 2 phones from verizon on PC by uploading photo.

    I have a 2 year, HP pavilion slimline computer desk, model # is S5-1224. I improved our Verizon phones recently and told me that the USB cord for the charger could also enter the PC to d/l images. Cool I thought, but it does not work. I'm working my

  • Moto Z Force - another terrible experience "pre-order".

    I pre-ordered one bike Z Force, and later the same day, a wireless bike Mod loader direct from Motorola last weekend. Just had an email of confirmation on the bike Mod. Called Support to motorcycle, last Monday, after the State of the command line di

  • iPhone 6 Won ' t back up

    I can't save my iPhone 6 on my iMac or the cloud. Phone works fine.