My journey so far has lead me to this script. (Below). Like most people stating out, it'll be 5 times longer and badly written, but it's a start. I'll attempt to attach a couple of screen grabs of what I have and what I'l like. I just can't seem to add colours and another paragraph for my variable data information. Driving me mental. So I thought I'd ask the people that know. Any help would be appreciated. Cheers (F) ----------------------------------------------- Main(); // If you want the script to be un-doable, comment out the line above, and remove the comment from the line below //app.doScript(Main, undefined, UndoModes, ENTIRE_SCRIPT, "Run Script"); function Main() { //Check to see whether any InDesign documents are open. // If no documents are open, display an error message. if (app.documents.length > 0) { var myDoc = app.activeDocument; // var myDraftLayer = myDoc.layers.add(); // DRAFT start var myDraftText = "DRAFT"; myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS; myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS; var myTextFrame = myDoc.textFrames.add(); myTextFrame.geometricBounds = [30, 10, 80, 90]; myTextFrame.contents = myDraftText; myTextFrame.textFramePreferences.verticalJustification = VerticalJustification.CENTER_ALIGN; myTextFrame.bottomLeftCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.bottomRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.bottomRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.topLeftCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.topRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.strokeColor = ("Black"); myTextFrame.strokeWeight = ("10"); myTextFrame.absoluteRotationAngle = 10; var myText = myTextFrame.paragraphs[0]; myText.appliedFont = app.fonts.item("Arial"); myText.fontStyle = "Bold"; myText.justification = Justification.centerAlign; myText.pointSize = 40; // DRAFT end // PRINT start var myPrintText = "SENT TO PRINT"; myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS; myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS; var myTextFrame = myDoc.textFrames.add(); myTextFrame.geometricBounds = [90, 10, 150, 90]; myTextFrame.contents = myPrintText; myTextFrame.textFramePreferences.verticalJustification = VerticalJustification.CENTER_ALIGN; myTextFrame.bottomLeftCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.bottomRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.bottomRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.topLeftCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.topRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.strokeColor = ("Black"); myTextFrame.strokeWeight = ("10"); myTextFrame.absoluteRotationAngle = 10; var myText = myTextFrame.paragraphs[0]; myText.appliedFont = app.fonts.item("Arial"); myText.fontStyle = "Bold"; myText.justification = Justification.centerAlign; myText.pointSize = 40; // PRINT end // FINAL start var myFINALText = "FINAL"; myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS; myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS; var myTextFrame = myDoc.textFrames.add(); myTextFrame.geometricBounds = [160, 10, 210, 90]; myTextFrame.contents = myFINALText; myTextFrame.textFramePreferences.verticalJustification = VerticalJustification.CENTER_ALIGN; myTextFrame.bottomLeftCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.bottomRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.bottomRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.topLeftCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.topRightCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.strokeColor = ("Black"); myTextFrame.strokeWeight = ("10"); myTextFrame.absoluteRotationAngle = 10; var myText = myTextFrame.paragraphs[0]; myText.appliedFont = app.fonts.item("Arial"); myText.fontStyle = "Bold"; myText.justification = Justification.centerAlign; myText.pointSize = 40; // FINAL end } else { // No documents are open, so display an error message. alert("No InDesign documents are open. Please open a document and try again."); } } ---------------------------------------------------
... View more